This commit is contained in:
Jan Prochazka 2022-03-20 08:48:48 +01:00
parent 04f25c4535
commit 1a81952ce7

View File

@ -5,7 +5,7 @@ async function executeQuery({ connection = undefined, systemConnection = undefin
console.log(`Execute query ${sql}`);
if (!driver) driver = requireEngineDriver(connection);
const pool = systemConnection || (await connectUtility(driver, connection, 'write'));
const pool = systemConnection || (await connectUtility(driver, connection, 'script'));
console.log(`Connected.`);
await driver.script(pool, sql);