From 6aa679169937c625d56e0d0f53ad6c42092b0cdf Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sat, 18 Feb 2023 14:53:07 +0100 Subject: [PATCH] fix --- src/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.ts b/src/db.ts index 7b9de08..f69447d 100644 --- a/src/db.ts +++ b/src/db.ts @@ -17,7 +17,7 @@ export class DB { constructor({ host, user, password, database, connectionLimit = 5, databaseType = dbType.mariadb }: { host: string, user: string, password: string, database: string, connectionLimit: number, databaseType: dbType }) { this.type = databaseType; if (databaseType == dbType.mariadb) { - this.mariaPool = mariadb.createPool({ host, user, password, database, connectionLimit, multipleStatements: false }); + this.mariaPool = mariadb.createPool({ host, user, password, database, connectionLimit, multipleStatements: true }); this.handler = new Handler(this); } /*else if (databaseType == dbType.postgres) {