Skip to content

Commit 5322a83

Browse files
committed
commit
1 parent 2389670 commit 5322a83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports.init = async (cfg) => {
1111
config = cfg;
1212
};
1313

14-
exports.createPool = async (poolName, allowMultiStatements) => {
14+
exports.createPool = async (poolName, allowMultiStatements = false) => {
1515
try {
1616
const srcCfg = config.DATASOURCES[poolName];
1717
if (srcCfg) {
@@ -22,7 +22,7 @@ exports.createPool = async (poolName, allowMultiStatements) => {
2222
password: srcCfg.DB_PASSWORD,
2323
database: srcCfg.DB_DATABASE,
2424
port: srcCfg.PORT,
25-
multipleStatements: allowMultiStatements || false,
25+
multipleStatements: allowMultiStatements,
2626
});
2727
console.debug(`MySQL Adapter: Pool ${poolName} created`);
2828
return true;

0 commit comments

Comments
 (0)