Skip to content

Commit

Permalink
fix: Return NULL when normalize default null value (#5517)
Browse files Browse the repository at this point in the history
This will fix #5509
  • Loading branch information
thefat32 committed Feb 14, 2020
1 parent 9fc8329 commit 1826b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/mysql/MysqlDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ export class MysqlDriver implements Driver {
return `'${defaultValue}'`;

} else if (defaultValue === null) {
return `null`;
return `NULL`;

} else {
return defaultValue;
Expand Down

0 comments on commit 1826b75

Please sign in to comment.