@trenskow/pged 5.0.13 → 5.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/query-builder.js +1 -1
package/package.json
CHANGED
package/query-builder.js
CHANGED
|
@@ -472,7 +472,7 @@ export default class QueryBuilder extends CustomPromise {
|
|
|
472
472
|
_buildUpdateKeysAndValues(keys, values) {
|
|
473
473
|
return `set ${keys.map((key, idx) => {
|
|
474
474
|
let value = values[idx];
|
|
475
|
-
if (value == null) {
|
|
475
|
+
if (typeof value === 'undefined' || value == null) {
|
|
476
476
|
value = 'null';
|
|
477
477
|
} else if (/^:/.test(value)) {
|
|
478
478
|
value = value.substring(1);
|