expectation:"INSERT INTO \"mySchema\".\"myTable\" (\"name\") VALUES ('foo'),('bar') RETURNING *;"
expectation:"INSERT INTO \"mySchema\".\"myTable\" (\"name\") VALUES ('foo'),('bar') RETURNING *;"
},{
},{
arguments:['mySchema.myTable',[{name:JSON.stringify({info:'Look ma a " quote'})},{name:JSON.stringify({info:'Look ma another " quote'})}]],
arguments:[{schema:'mySchema',tableName:'myTable'},[{name:JSON.stringify({info:'Look ma a " quote'})},{name:JSON.stringify({info:'Look ma another " quote'})}]],
expectation:"INSERT INTO \"mySchema\".\"myTable\" (\"name\") VALUES ('{\"info\":\"Look ma a \\\" quote\"}'),('{\"info\":\"Look ma another \\\" quote\"}') RETURNING *;"
expectation:"INSERT INTO \"mySchema\".\"myTable\" (\"name\") VALUES ('{\"info\":\"Look ma a \\\" quote\"}'),('{\"info\":\"Look ma another \\\" quote\"}') RETURNING *;"
expectation:"INSERT INTO mySchema.myTable (name) VALUES ('foo'),('bar') RETURNING *;",
expectation:"INSERT INTO mySchema.myTable (name) VALUES ('foo'),('bar') RETURNING *;",
context:{options:{quoteIdentifiers:false}}
context:{options:{quoteIdentifiers:false}}
},{
},{
arguments:['mySchema.myTable',[{name:JSON.stringify({info:'Look ma a " quote'})},{name:JSON.stringify({info:'Look ma another " quote'})}]],
arguments:[{schema:'mySchema',tableName:'myTable'},[{name:JSON.stringify({info:'Look ma a " quote'})},{name:JSON.stringify({info:'Look ma another " quote'})}]],
expectation:"INSERT INTO mySchema.myTable (name) VALUES ('{\"info\":\"Look ma a \\\" quote\"}'),('{\"info\":\"Look ma another \\\" quote\"}') RETURNING *;",
expectation:"INSERT INTO mySchema.myTable (name) VALUES ('{\"info\":\"Look ma a \\\" quote\"}'),('{\"info\":\"Look ma another \\\" quote\"}') RETURNING *;",
expectation:"DELETE FROM \"mySchema\".\"myTable\" WHERE \"id\" IN (SELECT \"id\" FROM \"mySchema\".\"myTable\" WHERE \"name\"='foo'';DROP TABLE mySchema.myTable;' LIMIT 10)"
expectation:"DELETE FROM \"mySchema\".\"myTable\" WHERE \"id\" IN (SELECT \"id\" FROM \"mySchema\".\"myTable\" WHERE \"name\"='foo'';DROP TABLE mySchema.myTable;' LIMIT 10)"
},{
},{
arguments:['myTable',{name:'foo'},{limit:null}],
arguments:['myTable',{name:'foo'},{limit:null}],
...
@@ -795,11 +795,11 @@ if (dialect.match(/^postgres/)) {
...
@@ -795,11 +795,11 @@ if (dialect.match(/^postgres/)) {
expectation:"DELETE FROM myTable WHERE id IN (SELECT id FROM myTable WHERE name='foo'';DROP TABLE myTable;' LIMIT 10)",
expectation:"DELETE FROM myTable WHERE id IN (SELECT id FROM myTable WHERE name='foo'';DROP TABLE myTable;' LIMIT 10)",