fix(Postgres Node): Empty return data fix for Postgres and MySQL (#7016)

This commit is contained in:
Michael Kret
2023-08-25 18:38:09 +03:00
committed by GitHub
parent f02f6b659a
commit 176ccd62bc
9 changed files with 86 additions and 22 deletions

View File

@@ -44,7 +44,9 @@ describe('Test PostgresV2, runQueries', () => {
const thisArg = mock<IExecuteFunctions>();
const runQueries = configureQueryRunner.call(thisArg, node, false, pgp, db);
const result = await runQueries([{ query: 'SELECT * FROM table', values: [] }], [], {});
const result = await runQueries([{ query: 'SELECT * FROM table', values: [] }], [], {
nodeVersion: 2.2,
});
expect(result).toBeDefined();
expect(result).toHaveLength(1);