Explorar o código

bug fix for get sqlite meta informations

xormplus %!s(int64=9) %!d(string=hai) anos
pai
achega
f59ef1af15
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sqlite3_dialect.go

+ 1 - 1
sqlite3_dialect.go

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