✏️ 修复 control 全局禁用

This commit is contained in:
fumiama
2021-11-27 00:56:22 +08:00
parent d4bceb1922
commit f8ca9355d2
2 changed files with 2 additions and 6 deletions

View File

@@ -133,17 +133,14 @@ func (db *Sqlite) Find(table string, objptr interface{}, condition string) error
if !rows.Next() {
return errors.New("sql.Find: null result")
}
err = rows.Scan(addrs(objptr)...)
for rows.Next() {
if err != nil {
return err
}
err = rows.Scan(addrs(objptr)...)
if err != nil {
return err
}
}
return nil
return err
}
// ListTables 列出所有表名