We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a5f5b1 commit 87d1babCopy full SHA for 87d1bab
test/postgres-bridge/bridge.ts
@@ -321,6 +321,27 @@ for (const {
321
});
322
323
324
+ test(clientName + ': connection.query() serializes json', async (t) => {
325
+ const pool = new Pool({
326
+ user: 'postgres',
327
+ });
328
+
329
+ const connection = await pool.connect();
330
331
+ const result = await connection.query('SELECT $1::json AS foo', [
332
+ {
333
+ bar: 'baz',
334
+ },
335
+ ]);
336
337
+ t.like(result.rows[0],
338
339
+ foo: {
340
341
342
343
344
345
test(clientName + ': connection.query() interpolates parameters', async (t) => {
346
const pool = new Pool({
347
user: 'postgres',
0 commit comments