Skip to content

Commit de42d1f

Browse files
committed
Fix redshift test failure
1 parent f292d45 commit de42d1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/db.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ describe("db.driver", function () {
144144

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

149149
switch (common.protocol()) {
150150
case 'mysql':
151151
case 'sqlite':
152152
expected = "UPDATE `animals` SET `name` = 'cat' WHERE `id` = 9"
153153
break;
154154
case 'postgres':
155+
case 'redshift':
155156
expected = 'UPDATE "animals" SET "name" = \'cat\' WHERE "id" = 9'
156157
break;
157158
}

0 commit comments

Comments
 (0)