Merge pull request #138 from eryx/master

bugfix: getting the right column lines
This commit is contained in:
Lunny Xiao 2014-07-04 17:34:17 +08:00
commit 76f9a47459
1 changed files with 1 additions and 1 deletions

View File

@ -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)