This commit is contained in:
Lunny Xiao 2017-06-19 20:36:48 +08:00
parent bd32ba97b7
commit acfe622aa0
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ type NullType struct {
Age sql.NullInt64 Age sql.NullInt64
Height sql.NullFloat64 Height sql.NullFloat64
IsMan sql.NullBool `xorm:"null"` IsMan sql.NullBool `xorm:"null"`
CustomStruct CustomStruct `xorm:"valchar(64) null"` CustomStruct CustomStruct `xorm:"varchar(64) null"`
} }
type CustomStruct struct { type CustomStruct struct {

View File

@ -36,6 +36,7 @@ func createEngine(dbType, connStr string) error {
testEngine.ShowSQL(*showSQL) testEngine.ShowSQL(*showSQL)
testEngine.logger.SetLevel(core.LOG_DEBUG) testEngine.logger.SetLevel(core.LOG_DEBUG)
//testEngine.QuoteMode = QuoteNoAdd
} }
tables, err := testEngine.DBMetas() tables, err := testEngine.DBMetas()