Skip to content

Commit 6d907c2

Browse files
committed
fix: fixing insert using default value instead of null
1 parent aedd0cb commit 6d907c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/QueryBuilder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export class QueryBuilder {
318318
if (value instanceof QueryRaw) {
319319
fields.push(field);
320320
values.push(value.getRaw());
321-
} else {
321+
} else if (value !== undefined) {
322322
binding.push(value);
323323
fields.push(field);
324324
values.push('?');

0 commit comments

Comments
 (0)