Skip to content

Commit ebe50a1

Browse files
committed
Test case and documentation updates
1 parent 0255b70 commit ebe50a1

File tree

6 files changed

+57
-58
lines changed

6 files changed

+57
-58
lines changed

doc/src/release_notes.rst

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,17 @@ Common Changes
1515
:ref:`iamtokenbasedauthentication`.
1616

1717
#) Added new property :attr:`connection.instanceName` which provides the
18-
Oracle Database instance name associated with the connection. This returns the
19-
same value as the SQL expression ``sys_context('userenv', 'instance_name')``.
18+
Oracle Database instance name associated with a connection. This returns
19+
the same value as the SQL
20+
expression ``sys_context('userenv', 'instance_name')``.
2021

2122
#) Minor code refactoring.
2223

24+
#) Test case and Documentation updates and improvements.
25+
2326
Thin Mode Changes
2427
+++++++++++++++++
2528

26-
#) Fixed bug giving 'ORA-01002 and NJS-112 errors' during LOB columns
27-
fetch after table recreation.
28-
`Issue #1589 <https://github.com/oracle/node-oracledb/issues/1565>`__.
29-
30-
#) Fixed bug in handling unexpected pool growth which is crossing pool max limit
31-
due to improper handling of parallel connection request.
32-
`Issue #1591 <https://github.com/oracle/node-oracledb/issues/1591>`__.
33-
34-
#) Fixed Bug to return proper error when invalid service name is
35-
configured in listener.
36-
3729
#) Added support for an Oracle Database 23c feature that can improve the
3830
performance of connection creation by reducing the number of round trips
3931
required to create the second and subsequent connections to the same
@@ -43,49 +35,59 @@ Thin Mode Changes
4335
``oracledb.fetchAsString = [ oracledb.DB_TYPE_RAW ]``.
4436
`Issue #1586 <https://github.com/oracle/node-oracledb/issues/1586>`__.
4537

46-
#) Added ``sslAllowWeakDNMatch`` connection attribute and support for
47-
``SSL_WEAK_DN_MATCH``. If set this enables ``sslServerDNMatch`` /
48-
``SSL_SERVER_DN_MATCH`` to check the database server certificate (but not
49-
the listener) and enable the service name to be used for partial DN
50-
matching. The search order is: the host name, then the subject alternative
51-
name (SAN), and then the service name.
38+
#) Added new ``sslAllowWeakDNMatch`` connection attribute and support for
39+
``SSL_WEAK_DN_MATCH`` (An Oracle Database 23c feature). If set, this
40+
enables ``sslServerDNMatch`` / ``SSL_SERVER_DN_MATCH`` to check the
41+
database server certificate (but not the listener) and enable the service
42+
name to be used for partial DN matching. The search order is: the host
43+
name, then the subject alternative name (SAN), and then the service name.
5244

53-
#) Connection Optimization(Internal):
54-
When connecting to a host, if the host is found to be unreachable,
55-
add that host to a cache(mark it as down). Subsequent requests to get
56-
a connection will reorder the list of hosts to attempt making a connection
57-
to so that the hosts which are marked as down are at the end of the list.
45+
#) Added support to include database error cause/action URLs (introduced from
46+
Oracle Database 23c onwards) for ORA error messages.
5847

59-
#) Fixed bug when ``sslServerDNMatch`` is set and the connect string is in Easy
60-
Connect format but a value for ``SSL_SERVER_DN_MATCH`` is not set in that
61-
connect string.
48+
#) Added network connection optimization for multiple database hosts.
49+
If a host is found to be unreachable during connection, the host is added
50+
to a cache (marked as 'down'). Subsequent requests to get a connection
51+
will reorder the list of available hosts so that the hosts marked as down
52+
are at the end of the list.
6253

63-
#) Fixed bug in DN matching when a remote and local listener use the same
64-
certificate.
54+
#) Fixed bug that throws unexpected 'ORA-01002' and 'NJS-112' errors
55+
when LOB columns are fetched after table recreation.
56+
`Issue #1565 <https://github.com/oracle/node-oracledb/issues/1565>`__.
6557

66-
#) Fixed bug with duplicate data for queries that exceed 2016 columns (only
67-
possible with Oracle Database 23c).
58+
#) Fixed bug with :attr:`oracledb.oracleClientVersion` and
59+
:attr:`connection.oracleServerVersionString`. These attributes
60+
now return 'undefined' in Thin mode instead of throwing an error.
61+
`Issue #1582 <https://github.com/oracle/node-oracledb/issues/1582>`__.
6862

6963
#) Fixed bug giving 'Unexpected message type' during connection authentication.
7064
`Issue #1589 <https://github.com/oracle/node-oracledb/issues/1589>`__.
7165

72-
#) Fixed bug with :attr:`oracledb.oracleClientVersion` and
73-
:attr:`connection.oracleServerVersionString`. These now return 'undefined'
74-
in Thin mode instead of throwing an error. `Issue #1582
75-
<https://github.com/oracle/node-oracledb/issues/1582>`__.
66+
#) Fixed bug in handling unexpected pool growth that exceeds pool max limit
67+
due to improper handling of parallel connection requests.
68+
`Issue #1591 <https://github.com/oracle/node-oracledb/issues/1591>`__.
69+
70+
#) Fixed bug to return proper error when an invalid database service name is
71+
configured in the database listener.
7672

77-
#) Added support to expose database error cause/action URL in error messages.
78-
For ORA errors etc., the ERROR cause/action URL for that error code will
79-
be provided along with error message.
73+
#) Fixed bug when ``sslServerDNMatch`` is set and the connect string is in
74+
Easy Connect syntax, but a value for ``SSL_SERVER_DN_MATCH`` is not set in
75+
that connect string.
76+
77+
#) Fixed bug in DN matching when both a remote and a local listener use the
78+
same certificate.
79+
80+
#) Fixed bug with duplicate data for queries that exceed 2016 columns (only
81+
possible with Oracle Database 23c).
8082

8183
Thick Mode Changes
8284
++++++++++++++++++
8385

84-
#) Added msgID (message Id) attribute in the message object passed onto the
85-
callback registered during AQ subscription. The msgID attribute passed
86-
with the callback functions can be compared with the msgID attribute
87-
returned by the deq* functions for proper validation of the returned
88-
message objects during message dequeue.
86+
#) Added ``msgID`` attribute in the message object passed onto the
87+
callback function registered during AQ subscription. The msgID attribute
88+
passed with the callback functions can be compared with the msgID
89+
attribute returned by the dequeue functions for proper validation of the
90+
returned message objects with message dequeue.
8991

9092
#) Added support to return a message object from the :meth:`queue.enqOne()
9193
<aqQueue.enqOne()>` and :meth:`queue.enqMany() <aqQueue.enqMany()>`

test/aq5.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2023, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -38,8 +38,6 @@ const dbConfig = require('./dbconfig.js');
3838
const testsUtil = require('./testsUtil.js');
3939
const assert = require('assert');
4040

41-
oracledb.events = true;
42-
4341
// callback for subscribe
4442
function cbSubscribe(message) {
4543
assert(message.msgId.length > 0);
@@ -51,6 +49,7 @@ describe('283.aq5.js', function() {
5149

5250
let isRunnable = true;
5351
let conn;
52+
let origEvents;
5453

5554
const AQ_USER = 'NODB_SCHEMA_AQTEST5';
5655
const AQ_USER_PWD = testsUtil.generateRandomPassword();
@@ -66,6 +65,8 @@ describe('283.aq5.js', function() {
6665
if (!isRunnable) {
6766
this.skip();
6867
} else {
68+
origEvents = oracledb.events;
69+
oracledb.events = true;
6970
await testsUtil.createAQtestUser(AQ_USER, AQ_USER_PWD);
7071

7172
const credential = {
@@ -99,6 +100,7 @@ describe('283.aq5.js', function() {
99100
if (!isRunnable) {
100101
return;
101102
} else {
103+
oracledb.events = origEvents;
102104
await conn.close();
103105
await testsUtil.dropAQtestUser(AQ_USER);
104106
}

test/aq6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2023, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*

test/aq7.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, 2022, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2023, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -27,7 +27,7 @@
2727
*
2828
* DESCRIPTION
2929
* Test Oracle Advanced Queueing (AQ).
30-
* Test cases for JSON payload type
30+
* Test cases for JSON payload type with AQ.
3131
*
3232
*****************************************************************************/
3333
'use strict';

test/errorUrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* 284. errorUrl.js
2727
*
2828
* DESCRIPTION
29-
* This test verifies enhancement to expose error portal URL in error message
29+
* This test verifies usage of the error URL in ORA-based error messages
3030
*
3131
*****************************************************************************/
3232
'use strict';

test/list.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5262,12 +5262,6 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
52625262
267.10 recipient list with enqMany non-existent in dequeue
52635263
267.11 recipient list with enqMany invalid datatype in dequeue
52645264

5265-
268. poolTimeout.js
5266-
268.1 poolTimeout as 0, no idle connection removals
5267-
268.2 poolTimeout as 1sec, idle connection will get removed
5268-
268.3 poolTimeout as 1sec and min connection defined, idle connection will be removed
5269-
268.4 check default poolTimeout as 60sec
5270-
52715265
268. procAndFuncs.js
52725266
268.1 calling stored procedures
52735267
268.1.1 executing a stored procedure
@@ -5284,7 +5278,8 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
52845278
268.3.6 executing a stored function with only one args
52855279
268.4 calling functions without any arguments
52865280
268.4.1 executing a stored function without any argument
5287-
269. Pool Timeout
5281+
5282+
269. PoolTimeout.js
52885283
269.1 poolTimeout as 0, no idle connection removals
52895284
269.2 poolTimeout as 1sec, idle connection will get removed
52905285
269.3 poolTimeout as 1sec and min connection defined, idle connection will be removed
@@ -5388,7 +5383,7 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
53885383
273.5 With Redaction on base tables
53895384
273.5.1 redaction enabled on a base table
53905385

5391-
274 jsonDualityView3.js
5386+
274. jsonDualityView3.js
53925387
274.1 Define Columns of View with WITH READ WRITE or WITH READ ONLY annotations
53935388
274.2 Create View on Virtual columns, UNUSED columns
53945389
274.3 Have columns of all scalar types, including FLOAT, TIMESTAMP, TIMESTAMP WITH TIME ZONE

0 commit comments

Comments
 (0)