mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
add structure logging handler for package glog (#2919)
This commit is contained in:
@ -44,9 +44,6 @@ func (r *SqlResult) MustGetInsertId() int64 {
|
||||
// driver may support this.
|
||||
// Also, See sql.Result.
|
||||
func (r *SqlResult) RowsAffected() (int64, error) {
|
||||
if r.Result == nil {
|
||||
return 0, nil
|
||||
}
|
||||
if r.Affected > 0 {
|
||||
return r.Affected, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user