fixed importing mysql dump #702

This commit is contained in:
SPRINX0\prochazka
2024-09-24 15:54:54 +02:00
parent 85bfb1986d
commit 517002e079
5 changed files with 16 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ export const driverBase = {
}
for (const sqlItem of splitQuery(sql, this.getQuerySplitterOptions('script'))) {
try {
await this.query(pool, sqlItem, { discardResult: true });
await this.query(pool, sqlItem, { discardResult: true, ...options?.queryOptions });
} catch (err) {
if (options?.useTransaction && this.supportsTransactions) {
runCommandOnDriver(pool, this, dmp => dmp.rollbackTransaction());