We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e953232 commit 3a1a8a9Copy full SHA for 3a1a8a9
lib/Dialects/postgresql.js
@@ -30,11 +30,9 @@ exports.escapeId = function () {
30
};
31
32
exports.escapeVal = function (val, timeZone) {
33
- if (val === undefined){
34
- return 'DEFAULT';
35
- }else if(val === null){
36
- return 'NULL';
37
- }
+ if (val === undefined || val === null) {
+ return 'NULL';
+ }
38
39
if (Array.isArray(val)) {
40
if (val.length === 1 && Array.isArray(val[0])) {
package.json
@@ -6,7 +6,7 @@
6
"sql",
7
"query"
8
],
9
- "version": "0.1.20",
+ "version": "0.1.21",
10
"license": "MIT",
11
"repository": {
12
"url": "http://github.com/dresende/node-sql-query"
0 commit comments