Skip to content

Commit 9c35777

Browse files
committed
key must be quoted to not cause errors
Signed-off-by: Tobias Gurtzick <[email protected]>
1 parent 13cc929 commit 9c35777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ var Base = Class.extend({
636636
return this.runSql(
637637
`UPDATE ${this.escapeDDL(table)} SET ${this.escapeDDL('value')} = ?,
638638
${this.escapeDDL('run_on')} = ?
639-
WHERE key = ?`,
639+
WHERE ${this.escapeDDL('key')} = ?`,
640640
[value, new Date(), key]
641641
);
642642
},
@@ -645,7 +645,7 @@ var Base = Class.extend({
645645
return this.runSql(
646646
`UPDATE ${this.escapeDDL(table)} SET ${this.escapeDDL('value')} = ?,
647647
${this.escapeDDL('run_on')} = ?
648-
WHERE key = ? AND ${this.escapeDDL(c)} = ?`,
648+
WHERE ${this.escapeDDL('key')} = ? AND ${this.escapeDDL(c)} = ?`,
649649
[value, new Date(), key, v]
650650
);
651651
},

0 commit comments

Comments
 (0)