Browse Source

bug fix for get sqlite meta informations

xormplus 8 years ago
parent
commit
f59ef1af15
1 changed files with 1 additions and 1 deletions
  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
 		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}