소스 검색

bug fix for get sqlite meta informations

xormplus 8 년 전
부모
커밋
f59ef1af15
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}