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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sql.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baja-lite",
3
- "version": "1.3.36",
3
+ "version": "1.3.37",
4
4
  "description": "some util for self",
5
5
  "homepage": "https://github.com/void-soul/util-man",
6
6
  "repository": {
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
  }