mysql2-core 0.3.0 → 0.3.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/lib/index.js +6 -6
- package/package.json +1 -1
- package/src/index.ts +6 -6
package/lib/index.js
CHANGED
|
@@ -308,7 +308,7 @@ function executeBatch(pool, statements, firstSuccess) {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
connection.
|
|
311
|
+
connection.query(queries.join(""), toArray(params), function (er2, results) {
|
|
312
312
|
if (er2) {
|
|
313
313
|
connection.rollback(function () {
|
|
314
314
|
return reject(er2);
|
|
@@ -364,7 +364,7 @@ function executeBatch(pool, statements, firstSuccess) {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
connection.
|
|
367
|
+
connection.query(queries_1.join(""), toArray(params_1), function (er2, results) {
|
|
368
368
|
if (er2) {
|
|
369
369
|
connection.rollback(function () {
|
|
370
370
|
buildError(er2);
|
|
@@ -456,7 +456,7 @@ function executeBatchConnectionTx(connection, statements, firstSuccess) {
|
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
connection.
|
|
459
|
+
connection.query(queries.join(""), toArray(params), function (er2, results) {
|
|
460
460
|
if (er2) {
|
|
461
461
|
connection.rollback(function () {
|
|
462
462
|
return reject(er2);
|
|
@@ -507,7 +507,7 @@ function executeBatchConnectionTx(connection, statements, firstSuccess) {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
|
-
connection.
|
|
510
|
+
connection.query(queries_2.join(""), toArray(params_2), function (er2, results) {
|
|
511
511
|
if (er2) {
|
|
512
512
|
connection.rollback(function () {
|
|
513
513
|
buildError(er2);
|
|
@@ -642,7 +642,7 @@ function executeBatchConnection(connection, statements, firstSuccess) {
|
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
connection.
|
|
645
|
+
connection.query(queries.join(""), toArray(params), function (er2, results) {
|
|
646
646
|
if (er2) {
|
|
647
647
|
return reject(er2);
|
|
648
648
|
}
|
|
@@ -675,7 +675,7 @@ function executeBatchConnection(connection, statements, firstSuccess) {
|
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
|
-
connection.
|
|
678
|
+
connection.query(queries.join(""), toArray(params), function (er2, results) {
|
|
679
679
|
if (er2) {
|
|
680
680
|
connection.rollback(function () {
|
|
681
681
|
buildError(er2);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -249,7 +249,7 @@ export async function executeBatch(pool: Pool, statements: Statement[], firstSuc
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
connection.
|
|
252
|
+
connection.query<ResultSetHeader>(queries.join(""), toArray(params), (er2, results) => {
|
|
253
253
|
if (er2) {
|
|
254
254
|
connection.rollback(() => {
|
|
255
255
|
return reject(er2)
|
|
@@ -300,7 +300,7 @@ export async function executeBatch(pool: Pool, statements: Statement[], firstSuc
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
})
|
|
303
|
-
connection.
|
|
303
|
+
connection.query<ResultSetHeader>(queries.join(""), toArray(params), (er2, results) => {
|
|
304
304
|
if (er2) {
|
|
305
305
|
connection.rollback(() => {
|
|
306
306
|
buildError(er2)
|
|
@@ -374,7 +374,7 @@ export async function executeBatchConnectionTx(connection: PoolConnection, state
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
connection.
|
|
377
|
+
connection.query<ResultSetHeader>(queries.join(""), toArray(params), (er2, results) => {
|
|
378
378
|
if (er2) {
|
|
379
379
|
connection.rollback(() => {
|
|
380
380
|
return reject(er2)
|
|
@@ -420,7 +420,7 @@ export async function executeBatchConnectionTx(connection: PoolConnection, state
|
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
})
|
|
423
|
-
connection.
|
|
423
|
+
connection.query<ResultSetHeader>(queries.join(""), toArray(params), (er2, results) => {
|
|
424
424
|
if (er2) {
|
|
425
425
|
connection.rollback(() => {
|
|
426
426
|
buildError(er2)
|
|
@@ -514,7 +514,7 @@ export async function executeBatchConnection(connection: PoolConnection, stateme
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
connection.
|
|
517
|
+
connection.query<ResultSetHeader>(queries.join(""), toArray(params), (er2, results) => {
|
|
518
518
|
if (er2) {
|
|
519
519
|
return reject(er2)
|
|
520
520
|
} else {
|
|
@@ -543,7 +543,7 @@ export async function executeBatchConnection(connection: PoolConnection, stateme
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
})
|
|
546
|
-
connection.
|
|
546
|
+
connection.query<ResultSetHeader>(queries.join(""), toArray(params), (er2, results) => {
|
|
547
547
|
if (er2) {
|
|
548
548
|
connection.rollback(() => {
|
|
549
549
|
buildError(er2)
|