@pi-r/mariadb 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/index.js +2 -2
- package/package.json +1 -1
package/client/index.js
CHANGED
|
@@ -239,7 +239,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
if (onceCredential && parallel
|
|
242
|
+
if (onceCredential && parallel) {
|
|
243
243
|
try {
|
|
244
244
|
mariaDBClient = await getConnection(item, onceCredential);
|
|
245
245
|
}
|
|
@@ -283,7 +283,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
283
283
|
}
|
|
284
284
|
else {
|
|
285
285
|
this.add(item, 4 /* DB_TRANSACTION.COMMIT */);
|
|
286
|
-
resolve(!error ? this.setQueryResult(source, removePoolProperties(credential), queryString, rows, cacheValue) : rows);
|
|
286
|
+
resolve(!error ? this.setQueryResult(source, removePoolProperties(credential), queryString, rows, cacheValue) : rows.length ? rows : null);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
else {
|