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 13cc929 commit 9c35777Copy full SHA for 9c35777
index.js
@@ -636,7 +636,7 @@ var Base = Class.extend({
636
return this.runSql(
637
`UPDATE ${this.escapeDDL(table)} SET ${this.escapeDDL('value')} = ?,
638
${this.escapeDDL('run_on')} = ?
639
- WHERE key = ?`,
+ WHERE ${this.escapeDDL('key')} = ?`,
640
[value, new Date(), key]
641
);
642
},
@@ -645,7 +645,7 @@ var Base = Class.extend({
645
646
647
648
- WHERE key = ? AND ${this.escapeDDL(c)} = ?`,
+ WHERE ${this.escapeDDL('key')} = ? AND ${this.escapeDDL(c)} = ?`,
649
[value, new Date(), key, v]
650
651
0 commit comments