add structure logging handler for package glog (#2919)

This commit is contained in:
John Guo
2023-09-04 21:23:46 +08:00
committed by GitHub
parent eb11061bd2
commit 887803e495
7 changed files with 334 additions and 43 deletions

View File

@ -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
}