This commit is contained in:
shoopea 2019-07-08 11:51:28 +08:00
parent f96f43c997
commit 7ed97d0a59

2
sql.go
View File

@ -348,7 +348,7 @@ func initDB() {
_, err = db.Exec(`CREATE VIEW obj_name_v AS
SELECT obn.*
.obn.name COLLATE utf8mb4_unicode_ci AS text
,obn.name COLLATE utf8mb4_unicode_ci AS text
FROM obj_name obn;`)
failOnError(err, "initDB : create view obj_name_v")
log.Println("initDB : obj_name_v created ...")