Skip to content

Commit 6b029fe

Browse files
committed
Connections to standby database opened now return 0
1 parent c2cefc2 commit 6b029fe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/src/release_notes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ node-oracledb `v6.4.0 <https://github.com/oracle/node-oracledb/compare/v6.3.0...
1313
Common Changes
1414
++++++++++++++
1515

16+
#) Connections to standby database opened `MOUNTED` return
17+
`NAN <https://github.com/nodejs/nan>` for :meth:`~connection.maxOpenCursors`
18+
Fixed to return 0.
19+
1620
#) Added :meth:`~dbObject.toMap` method to :ref:`DbObject Class<dbobjectclass>`
1721
which returns a map object.
1822
See `Issue #1627 <https://github.com/oracle/node-oracledb/issues/1627>`__.

lib/thin/protocol/messages/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class AuthMessage extends Message {
322322

323323
this.conn.dbDomain = this.sessionData['AUTH_SC_DB_DOMAIN'];
324324
this.conn.dbName = this.sessionData['AUTH_SC_DBUNIQUE_NAME'];
325-
this.conn.maxOpenCursors = Number(this.sessionData['AUTH_MAX_OPEN_CURSORS']);
325+
this.conn.maxOpenCursors = Number(this.sessionData['AUTH_MAX_OPEN_CURSORS'] || 0);
326326
this.conn.serviceName = this.sessionData['AUTH_SC_SERVICE_NAME'];
327327
this.conn.instanceName = this.sessionData['AUTH_INSTANCENAME'];
328328
const fullVersionNum = Number(this.sessionData['AUTH_VERSION_NO']);

0 commit comments

Comments
 (0)