1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 16:40:54 +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()
for rows.Next() {
var tmp, index sql.NullString
rows.Scan(&tmp, &index, &tmp)
rows.Scan(&tmp, &index, &tmp, &tmp, &tmp)
if name == index.String {
return true
}