@rudsys/n8n-nodes-sqlite3 0.1.11 → 0.1.12

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.
@@ -478,6 +478,9 @@ class SqliteSsh {
478
478
  const updateFields = updateEntries
479
479
  .map(([k, v]) => `${escapeIdentifier(k)} = ${escapeValue(v)}`)
480
480
  .join(', ');
481
+ if (!updateFields) {
482
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No data to update. Please check input items or "Data Processing Mode".', { itemIndex: i });
483
+ }
481
484
  sql = `UPDATE ${table} SET ${updateFields}${where};`;
482
485
  }
483
486
  else if (operation === 'delete') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudsys/n8n-nodes-sqlite3",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "n8n node for Remote SQLite operations via SSH",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/rudsys/n8n-nodes-sqlite3",