This commit is contained in:
Jan Prochazka
2021-06-03 12:33:02 +02:00
parent 2a34a3b48b
commit bebdf3f43b
2 changed files with 15 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ async function handleRunScript({ msgid, sql }) {
await waitConnected();
const driver = requireEngineDriver(storedConnection);
try {
await driver.script(sql);
await driver.script(systemConnection, sql);
process.send({ msgtype: 'response', msgid });
} catch (err) {
process.send({ msgtype: 'response', msgid, errorMessage: err.message });