mssql 12.7.9 → 12.7.10
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/README.md +4 -1
- package/lib/msnodesqlv8/request.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1550,6 +1550,7 @@ __Errors__
|
|
|
1550
1550
|
- ECONNCLOSED (`ConnectionError`) - Connection is closed.
|
|
1551
1551
|
- EALREADYPREPARED (`PreparedStatementError`) - Statement is already prepared.
|
|
1552
1552
|
- ENOTBEGUN (`TransactionError`) - Transaction has not begun.
|
|
1553
|
+
- EREQINPROG (`TransactionError`) - Can't acquire connection for the request. There is another request in progress.
|
|
1553
1554
|
|
|
1554
1555
|
---------------------------------------
|
|
1555
1556
|
|
|
@@ -1626,6 +1627,7 @@ __Errors__
|
|
|
1626
1627
|
- EREQUEST (`RequestError`) - *Message from SQL Server*
|
|
1627
1628
|
- EPARAM (`RequestError`) - A parameter value is not valid for its type.
|
|
1628
1629
|
- ECANCEL (`RequestError`) - Cancelled.
|
|
1630
|
+
- EREQINPROG (`TransactionError`) - Can't acquire connection for the request. There is another request in progress.
|
|
1629
1631
|
|
|
1630
1632
|
---------------------------------------
|
|
1631
1633
|
|
|
@@ -1654,6 +1656,7 @@ ps.prepare('select @param as value', err => {
|
|
|
1654
1656
|
|
|
1655
1657
|
__Errors__
|
|
1656
1658
|
- ENOTPREPARED (`PreparedStatementError`) - Statement is not prepared.
|
|
1659
|
+
- EREQINPROG (`TransactionError`) - Can't unprepare the statement. There is a request in progress.
|
|
1657
1660
|
|
|
1658
1661
|
## CLI
|
|
1659
1662
|
|
|
@@ -2222,7 +2225,7 @@ Name | Code | Message
|
|
|
2222
2225
|
`ConnectionError` | ECONNCLOSED | Connection is closed.
|
|
2223
2226
|
`TransactionError` | ENOTBEGUN | Transaction has not begun.
|
|
2224
2227
|
`TransactionError` | EALREADYBEGUN | Transaction has already begun.
|
|
2225
|
-
`TransactionError` | EREQINPROG | Can't commit/rollback transaction or acquire connection for the request. There is a request in progress.
|
|
2228
|
+
`TransactionError` | EREQINPROG | Can't commit/rollback transaction, unprepare the statement or acquire connection for the request. There is a request in progress.
|
|
2226
2229
|
`TransactionError` | EABORT | Transaction has been aborted.
|
|
2227
2230
|
`TransactionError` | ENOCONN | No connection is specified for that transaction.
|
|
2228
2231
|
`RequestError` | EREQUEST | Message from SQL Server. Error object contains additional details.
|
|
@@ -701,6 +701,10 @@ class Request extends BaseRequest {
|
|
|
701
701
|
cancelHeld = false
|
|
702
702
|
cancel()
|
|
703
703
|
}
|
|
704
|
+
// a stream resumed meanwhile left the query held back. msnodesqlv8 fetches as soon as
|
|
705
|
+
// it is resumed, and again once 'meta' is handled, so the query is resumed a tick
|
|
706
|
+
// later, once it has stopped at the result set
|
|
707
|
+
if (!this.paused && driverPaused && !cancelRequested) setImmediate(this._resumeStream)
|
|
704
708
|
}
|
|
705
709
|
|
|
706
710
|
if (row) {
|