Commit 014b1ec7 authored by gwenn's avatar gwenn

Fix regression with SQLite 3.8.9

parent 4f383ed3
...@@ -300,7 +300,10 @@ func (c *Conn) TableIndexes(dbName, table string) ([]Index, error) { ...@@ -300,7 +300,10 @@ func (c *Conn) TableIndexes(dbName, table string) ([]Index, error) {
var indexes = make([]Index, 0, 5) var indexes = make([]Index, 0, 5)
err = s.execQuery(func(s *Stmt) (err error) { err = s.execQuery(func(s *Stmt) (err error) {
i := Index{} i := Index{}
if err = s.Scan(nil, &i.Name, &i.Unique); err != nil { if _, err = s.ScanByIndex(1, &i.Name); err != nil {
return
}
if _, err = s.ScanByIndex(2, &i.Unique); err != nil {
return return
} }
indexes = append(indexes, i) indexes = append(indexes, i)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment