✏️ 修复 control 全局禁用

This commit is contained in:
fumiama 2021-11-27 00:48:32 +08:00
parent ab34930beb
commit 876d85ac4e

View File

@ -3,6 +3,7 @@ package sql
import (
"database/sql"
"errors"
"reflect"
"strings"
@ -129,6 +130,10 @@ func (db *Sqlite) Find(table string, objptr interface{}, condition string) error
}
defer rows.Close()
if !rows.Next() {
return errors.New("sql.Find: null result")
}
for rows.Next() {
if err != nil {
return err