update xorm for bugs fix (#728)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2017-01-23 19:11:57 +08:00
1 parent a8048c19f3
commit 907b6f943c
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -317,7 +317,7 @@ func (db *sqlite3) GetColumns(tableName string) ([]string, map[string]*core.Colu
col.DefaultIsEmpty = true
for idx, field := range fields {
if idx == 0 {
col.Name = strings.Trim(field, "`[] ")
col.Name = strings.Trim(strings.Trim(field, "`[] "), `"`)
continue
} else if idx == 1 {
col.SQLType = core.SQLType{Name: field, DefaultLength: 0, DefaultLength2: 0}