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:
commit
c12709dbc9
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user