Skip to content

Commit

Permalink
Fix redshift test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dxg committed Mar 16, 2022
1 parent f292d45 commit de42d1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,15 @@ describe("db.driver", function () {

describe("#generateQuery", function () {
it("should return interpolated & escaped SQL", function () {
var expected = "expectation missing; unknown protocol";
var expected = "expectation missing; unknown protocol " + common.protocol();

switch (common.protocol()) {
case 'mysql':
case 'sqlite':
expected = "UPDATE `animals` SET `name` = 'cat' WHERE `id` = 9"
break;
case 'postgres':
case 'redshift':
expected = 'UPDATE "animals" SET "name" = \'cat\' WHERE "id" = 9'
break;
}
Expand Down

0 comments on commit de42d1f

Please sign in to comment.