Skip to content

Commit

Permalink
fix: fixing insert using default value instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Nov 6, 2023
1 parent aedd0cb commit 6d907c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/QueryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export class QueryBuilder {
if (value instanceof QueryRaw) {
fields.push(field);
values.push(value.getRaw());
} else {
} else if (value !== undefined) {
binding.push(value);
fields.push(field);
values.push('?');
Expand Down

0 comments on commit 6d907c2

Please sign in to comment.