File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -683,7 +683,8 @@ var Base = Class.extend({
683
683
this . _escapeDDL +
684
684
table +
685
685
this . _escapeDDL +
686
- ' ORDER BY run_on DESC, name DESC' ;
686
+ ` ORDER BY ${ this . escapeDDL ( 'run_on' ) } DESC,
687
+ ${ this . escapeDDL ( 'name' ) } DESC` ;
687
688
return this . allAsync ( sql ) ;
688
689
} ,
689
690
@@ -693,7 +694,7 @@ var Base = Class.extend({
693
694
this . _escapeDDL +
694
695
table +
695
696
this . _escapeDDL +
696
- ' WHERE key = ?' ;
697
+ ` WHERE ${ this . escapeDDL ( ' key' ) } = ?` ;
697
698
return this . allAsync ( sql , [ key ] ) . then ( ( [ row ] ) => row ) ;
698
699
} ,
699
700
@@ -743,7 +744,7 @@ var Base = Class.extend({
743
744
this . _escapeDDL +
744
745
table +
745
746
this . _escapeDDL +
746
- ' WHERE key = ?' ;
747
+ ` WHERE ${ this . escapeDDL ( ' key' ) } = ?` ;
747
748
return this . runSql ( sql , [ key ] ) ;
748
749
} ,
749
750
You can’t perform that action at this time.
0 commit comments