You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
if withCount, ok := query["withCount"]; ok {
if w, ok := withCount.(bool); ok {
if w {
total, err := session.Count(query["model"])
if err != nil {
return errors.New("Count函数错误" + err.Error())
} else {
*count = total
}
}
} else {
return errors.New("withCount格式不正确")
}
}
sql: Scan error on column index 0, name "COUNT(*)": converting driver.Value type float64 ("1.159454e+06") to a int64: invalid syntax
The text was updated successfully, but these errors were encountered: