mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +00:00
fix
This commit is contained in:
parent
04f25c4535
commit
1a81952ce7
@ -5,7 +5,7 @@ async function executeQuery({ connection = undefined, systemConnection = undefin
|
|||||||
console.log(`Execute query ${sql}`);
|
console.log(`Execute query ${sql}`);
|
||||||
|
|
||||||
if (!driver) driver = requireEngineDriver(connection);
|
if (!driver) driver = requireEngineDriver(connection);
|
||||||
const pool = systemConnection || (await connectUtility(driver, connection, 'write'));
|
const pool = systemConnection || (await connectUtility(driver, connection, 'script'));
|
||||||
console.log(`Connected.`);
|
console.log(`Connected.`);
|
||||||
|
|
||||||
await driver.script(pool, sql);
|
await driver.script(pool, sql);
|
||||||
|
Loading…
Reference in New Issue
Block a user