fix: correctly processing script outside of transactions for firebird

This commit is contained in:
Pavel
2025-06-03 17:19:02 +02:00
parent e4911a6f82
commit 4177448d32

View File

@@ -114,7 +114,11 @@ const driver = {
async script(dbhan, sql, { useTransaction } = {}) {
if (useTransaction) return this.runSqlInTransaction(dbhan, sql);
return this.query(dbhan, sql);
const sqlItems = splitQuery(sql, driver.sqlSplitterOptions);
for (const sqlItem of sqlItems) {
await this.query(dbhan, sqlItem, { discardResult: true });
}
},
async readQuery(dbhan, sql, structure) {