Skip to content

Commit

Permalink
Add DPI error codes for Oracle (#4536)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpeltola committed Jul 12, 2021
1 parent eec4632 commit f447b3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dialects/oracle/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ ReturningHelper.prototype.toString = function () {
// mark the connection as failed
function isConnectionError(err) {
return [
'DPI-1010', // not connected
'DPI-1080', // connection was closed by ORA-%d
'ORA-03114', // not connected to ORACLE
'ORA-03113', // end-of-file on communication channel
'ORA-03135', // connection lost contact
Expand Down Expand Up @@ -70,7 +72,6 @@ function isConnectionError(err) {
'ORA-27146', // post/wait initialization failed
'ORA-28511', // lost RPC connection
'ORA-56600', // an illegal OCI function call was issued
'NJS-040',
'NJS-024',
'NJS-003',
].some(function (prefix) {
Expand Down

0 comments on commit f447b3b

Please sign in to comment.