mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 03:50:51 +00:00
Merge pull request #2536 from ChristophPech/master
Fix for IndexExists in SQLite driver
This commit is contained in:
commit
c12709dbc9
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user