diff --git a/callback_create.go b/callback_create.go index 14b82047..7a6dea94 100644 --- a/callback_create.go +++ b/callback_create.go @@ -118,6 +118,7 @@ func createCallback(scope *Scope) { } } else { if err := scope.SQLDB().QueryRow(scope.SQL, scope.SQLVars...).Scan(primaryField.Field.Addr().Interface()); scope.Err(err) == nil { + primaryField.IsBlank = false scope.db.RowsAffected = 1 } }