diff --git a/callback_create.go b/callback_create.go index ed2589dd..4c909e1c 100644 --- a/callback_create.go +++ b/callback_create.go @@ -72,7 +72,7 @@ func Create(scope *Scope) { if names, columnsErr := rows.Columns(); columnsErr != nil { ids := make([]interface{}, len(names)) if scope.Err(rows.Scan(ids...)) == nil { - scope.db.RowsAffected = int64(len(names)) + scope.db.RowsAffected = 1 } } }