Merge pull request #138 from eryx/master
bugfix: getting the right column lines
This commit is contained in:
commit
76f9a47459
|
@ -129,7 +129,7 @@ func (db *sqlite3) GetColumns(tableName string) ([]string, map[string]*core.Colu
|
||||||
}
|
}
|
||||||
|
|
||||||
nStart := strings.Index(name, "(")
|
nStart := strings.Index(name, "(")
|
||||||
nEnd := strings.Index(name, ")")
|
nEnd := strings.LastIndex(name, ")")
|
||||||
colCreates := strings.Split(name[nStart+1:nEnd], ",")
|
colCreates := strings.Split(name[nStart+1:nEnd], ",")
|
||||||
cols := make(map[string]*core.Column)
|
cols := make(map[string]*core.Column)
|
||||||
colSeq := make([]string, 0)
|
colSeq := make([]string, 0)
|
||||||
|
|
Loading…
Reference in New Issue