baja-lite 1.3.36 → 1.3.37
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/sql.js +1 -1
package/package.json
CHANGED
package/sql.js
CHANGED
|
@@ -3517,7 +3517,7 @@ class StreamQuery {
|
|
|
3517
3517
|
incr(key, value = 1) {
|
|
3518
3518
|
const pkey = `p${this._prefix}${this._index++}`;
|
|
3519
3519
|
const keyName = this[_fields][String(key)]?.C2();
|
|
3520
|
-
this._updateColumns.push(`${keyName} = ${keyName} + :${pkey}`);
|
|
3520
|
+
this._updateColumns.push(`${keyName} = IFNULL(${keyName}, 0) + :${pkey}`);
|
|
3521
3521
|
this._param[pkey] = value;
|
|
3522
3522
|
return this;
|
|
3523
3523
|
}
|