1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 09:51:28 +00:00

Merge pull request #2536 from ChristophPech/master

Fix for IndexExists in SQLite driver
This commit is contained in:
astaxie 2017-03-29 09:53:55 +08:00 committed by GitHub
commit c12709dbc9

View File

@ -134,7 +134,7 @@ func (d *dbBaseSqlite) IndexExists(db dbQuerier, table string, name string) bool
defer rows.Close() defer rows.Close()
for rows.Next() { for rows.Next() {
var tmp, index sql.NullString var tmp, index sql.NullString
rows.Scan(&tmp, &index, &tmp) rows.Scan(&tmp, &index, &tmp, &tmp, &tmp)
if name == index.String { if name == index.String {
return true return true
} }