Fixed: rows affected when get row

Change-Id: I5fbbde65a1a33996b01d79d8adf19dd2a7c3081b
This commit is contained in:
cuiweixie 2018-10-23 11:09:47 +08:00
parent 742154be9a
commit 1ab1d5892e

View File

@ -937,7 +937,7 @@ func (scope *Scope) row() *sql.Row {
result := &RowQueryResult{} result := &RowQueryResult{}
scope.InstanceSet("row_query_result", result) scope.InstanceSet("row_query_result", result)
scope.callCallbacks(scope.db.parent.callbacks.rowQueries) scope.callCallbacks(scope.db.parent.callbacks.rowQueries)
scope.db.RowsAffected = 1
return result.Row return result.Row
} }