We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2389670 commit 5322a83Copy full SHA for 5322a83
index.js
@@ -11,7 +11,7 @@ exports.init = async (cfg) => {
11
config = cfg;
12
};
13
14
-exports.createPool = async (poolName, allowMultiStatements) => {
+exports.createPool = async (poolName, allowMultiStatements = false) => {
15
try {
16
const srcCfg = config.DATASOURCES[poolName];
17
if (srcCfg) {
@@ -22,7 +22,7 @@ exports.createPool = async (poolName, allowMultiStatements) => {
22
password: srcCfg.DB_PASSWORD,
23
database: srcCfg.DB_DATABASE,
24
port: srcCfg.PORT,
25
- multipleStatements: allowMultiStatements || false,
+ multipleStatements: allowMultiStatements,
26
});
27
console.debug(`MySQL Adapter: Pool ${poolName} created`);
28
return true;
0 commit comments