Skip to content

Commit 23530ce

Browse files
committed
Test case and documentation updates
1 parent 7aebacf commit 23530ce

File tree

2 files changed

+59
-50
lines changed

2 files changed

+59
-50
lines changed

doc/src/release_notes.rst

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,60 @@ node-oracledb `v6.1.0 <https://github.com/oracle/node-oracledb/compare/v6.0.3...
1111
Common Changes
1212
++++++++++++++
1313

14-
#) Added support to return message object in enqOne(), enqMany() functions.
15-
This message object contains message Id, which can later be used to pull
16-
the messages from queue.
17-
18-
#) Support for both formatted and un-formatted private key as an input for IAM based authentication.
19-
20-
#) Error NJS-117 (invalid private key. Headers and footers are not allowed) is removed.
14+
#) Added support for both formatted and un-formatted private keys as input for
15+
:ref:`iamtokenbasedauthentication`.
2116

2217
#) Added new property :attr:`connection.instanceName` which provides the
2318
Oracle Database instance name associated with the connection. This returns the
2419
same value as the SQL expression ``sys_context('userenv', 'instance_name')``.
2520

2621
#) Minor code refactoring.
2722

28-
#) Fixed bug with duplicate data and queries that exceed 2016 columns (only
29-
possible with Oracle Database 23c).
30-
3123
Thin Mode Changes
3224
+++++++++++++++++
33-
#) Fixed bug when SSL_SERVER_DN_MATCH set in UserConfig does not carry
34-
through when the input connect string is in easy connect format
35-
and SSL_SERVER_DN_MATCH value is not set in that connect string.
3625

37-
#) Add support to improve Connection Establishment Latency for DB
38-
versions 23.3 onwards.
26+
#) Added support for an Oracle Database 23c feature that can improve the
27+
performance of connection creation by reducing the number of round trips
28+
required to create the second and subsequent connections to the same
29+
database.
30+
31+
#) Added support for fetching RAW columns as strings using
32+
``oracledb.fetchAsString = [ oracledb.DB_TYPE_RAW ]``.
33+
`Issue #1586 <https://github.com/oracle/node-oracledb/issues/1586>`__.
34+
35+
#) Added ``sslAllowWeakDNMatch`` connection attribute and support for
36+
``SSL_WEAK_DN_MATCH``. If set this enables ``sslServerDNMatch`` /
37+
``SSL_SERVER_DN_MATCH`` to check the database server certificate (but not
38+
the listener) and enable the service name to be used for partial DN
39+
matching. The search order is: the host name, then the subject alternative
40+
name (SAN), and then the service name.
3941

40-
#) Fixed bug in handling server to client piggybacks which are sometimes
41-
received during Authentcation phase.
42+
#) Fixed bug when ``sslServerDNMatch`` is set and the connect string is in Easy
43+
Connect format but a value for ``SSL_SERVER_DN_MATCH`` is not set in that
44+
connect string.
45+
46+
#) Fixed bug in DN matching when a remote and local listener use the same
47+
certificate.
48+
49+
#) Fixed bug with duplicate data for queries that exceed 2016 columns (only
50+
possible with Oracle Database 23c).
51+
52+
#) Fixed bug giving 'Unexpected message type' during connection authentication.
4253
`Issue #1589 <https://github.com/oracle/node-oracledb/issues/1589>`__.
4354

44-
#) Add support to fetch RAW types as string using
45-
``oracledb.fetchAsString = [oracledb.DB_TYPE_RAW];``
46-
`Issue #1586 <https://github.com/oracle/node-oracledb/issues/1586>`__.
55+
#) Fixed bug with :attr:`oracledb.oracleClientVersion` and
56+
:attr:`connection.oracleServerVersionString`. These now return 'undefined'
57+
in Thin mode instead of throwing an error. `Issue #1582
58+
<https://github.com/oracle/node-oracledb/issues/1582>`__.
4759

48-
#) Support for SSL_WEAK_DN_MATCH(default false). If set enables
49-
SSL_SERVER_DN_MATCH to check the database server certificate
50-
(but not the listener) and enable the service name to be used for partial
51-
DN matching. The search order on the client side is as follows:
52-
first, the host name, then the subject alternative name (SAN),
53-
and then the service name.
60+
Thick Mode Changes
61+
++++++++++++++++++
5462

55-
#) Fixed bug in DN matching when remote and local listener use the same certificate.
63+
#) Added support to return a message object from the :meth:`queue.enqOne()
64+
<aqQueue.enqOne()>` and :meth:`queue.enqMany() <aqQueue.enqMany()>`
65+
functions. This message object contains a ``msgId`` attribute identifying
66+
each message.
5667

57-
#) Fixed bug in getting oracleClientVersion() and oracleClientVersionString().
58-
`Issue #1582 <https://github.com/oracle/node-oracledb/issues/1582>`__.
5968

6069
node-oracledb `v6.0.3 <https://github.com/oracle/node-oracledb/compare/v6.0.2...v6.0.3>`__ (12 Jul 2023)
6170
--------------------------------------------------------------------------------------------------------

test/list.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ Overview of node-oracledb functional tests
429429
22.3.2 bind scalar values INOUT
430430
22.3.3 bind scalar values OUT
431431
22.4 PL/SQL binding indexed tables
432-
- 22.4.1 bind indexed table IN
432+
22.4.1 bind indexed table IN
433433

434434
23. dataTypeNchar.js
435435
23.1 testing NCHAR data in various lengths
@@ -1009,7 +1009,7 @@ Overview of node-oracledb functional tests
10091009
70.2.6 val: undefined
10101010
70.2.7 val: NaN
10111011
70.2.8 val: -1
1012-
- 70.2.9 val: maxval
1012+
70.2.9 val: maxval
10131013
70.3 dir: BIND_IN and BIND_OUT, type: DATE
10141014
70.3.1 basic case
10151015
70.3.2 auto detect Date type
@@ -1051,7 +1051,7 @@ Overview of node-oracledb functional tests
10511051
70.6.6 val: NaN
10521052
70.6.7 val: 0
10531053
70.6.8 val: -1
1054-
- 70.6.9 val: maxval
1054+
70.6.9 val: maxval
10551055
70.6.10 NULL IN and NON-NULL out
10561056
70.6.11 NON-NULL IN and NULL OUT
10571057
70.7 dir: BIND_INOUT, type: DATE
@@ -1404,10 +1404,10 @@ Overview of node-oracledb functional tests
14041404
76.1.21 works with UPDATE
14051405
76.1.22 works with invalid CLOB
14061406
76.1.23 works with substr
1407-
- 76.1.24 named binding: maxSize smaller than string length( < 32K )
1407+
76.1.24 named binding: maxSize smaller than string length( < 32K )
14081408
76.1.25 named binding: maxSize smaller than string length( > 32K )
14091409
76.1.26 named binding: maxSize smaller than string length( > 64K )
1410-
- 76.1.27 positional binding: maxSize smaller than string length( < 32K )
1410+
76.1.27 positional binding: maxSize smaller than string length( < 32K )
14111411
76.1.28 positional binding: maxSize smaller than string length( > 32K )
14121412
76.1.29 positional binding: maxSize smaller than string length( > 64K )
14131413
76.2 CLOB, PLSQL, BIND_INOUT to VARCHAR2
@@ -1566,10 +1566,10 @@ Overview of node-oracledb functional tests
15661566
79.1.21 works with invalid BLOB
15671567
79.1.22 works with substr
15681568
79.1.23 works with UPDATE
1569-
- 79.1.24 named binding: maxSize smaller than buffer size ( < 32K )
1569+
79.1.24 named binding: maxSize smaller than buffer size ( < 32K )
15701570
79.1.25 named binding: maxSize smaller than buffer size ( > 32K )
15711571
79.1.26 named binding: maxSize smaller than buffer size ( > 64K )
1572-
- 79.1.27 positional binding: maxSize smaller than buffer size ( < 32K )
1572+
79.1.27 positional binding: maxSize smaller than buffer size ( < 32K )
15731573
79.1.28 positional binding: maxSize smaller than buffer size ( > 32K )
15741574
79.1.29 positional binding: maxSize smaller than buffer size ( > 64K )
15751575
79.1.30 bind without maxSize
@@ -2667,23 +2667,23 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
26672667
102.18 Negative - type and value mismatch, BUFFER
26682668
102.19 Negative - type and value mismatch, CLOB
26692669
102.20 Negative - type and value mismatch, CURSOR
2670-
- 102.21 Negative - type and value mismatch, DEFAULT
2670+
102.21 Negative - type and value mismatch, DEFAULT
26712671
102.22 Negative - type and value mismatch, NUMBER
26722672
102.23 Negative - type and value mismatch, STRING
2673-
- 102.24 Negative - type and value mismatch, NOTEXIST
2673+
102.24 Negative - type and value mismatch, NOTEXIST
26742674
PL/SQL, OUT bind
26752675
102.25 PL/SQL, OUT bind, bind by position
26762676
102.26 PL/SQL, OUT bind, bind by name
26772677
102.27 PL/SQL, OUT bind, Null
26782678
102.28 Negative - PL/SQL, OUT bind, value and type mismatch
26792679
102.29 Negative - type and value mismatch, BLOB
2680-
- 102.30 Negative - type and value mismatch, BUFFER
2680+
102.30 Negative - type and value mismatch, BUFFER
26812681
102.31 Negative - type and value mismatch, CLOB
2682-
- 102.32 Negative - type and value mismatch, CURSOR
2682+
102.32 Negative - type and value mismatch, CURSOR
26832683
102.33 Negative - type and value mismatch, DEFAULT
26842684
102.34 Negative - type and value mismatch, NUMBER
2685-
- 102.35 Negative - type and value mismatch, STRING
2686-
- 102.36 Negative - type and value mismatch, NOTEXIST
2685+
102.35 Negative - type and value mismatch, STRING
2686+
102.36 Negative - type and value mismatch, NOTEXIST
26872687
PL/SQL, IN OUT bind
26882688
102.37 PL/SQL, IN OUT bind, bind by name
26892689
102.38 PL/SQL, IN OUT bind, bind by position
@@ -2693,7 +2693,7 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
26932693
102.42 Negative - type and value mismatch, BUFFER
26942694
102.43 Negative - type and value mismatch, CLOB
26952695
102.44 Negative - type and value mismatch, CURSOR
2696-
- 102.45 Negative - type and value mismatch, DEFAULT
2696+
102.45 Negative - type and value mismatch, DEFAULT
26972697
102.46 Negative - type and value mismatch, NUMBER
26982698
102.47 Negative - type and value mismatch, STRING
26992699

@@ -4511,15 +4511,15 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
45114511
200.10 call procedure with 2 OUT binds of DbObject
45124512

45134513
201. dbObject2.js
4514-
- 201.1 insert an object with timestamp attributes
4515-
- directly insert timestamp data
4514+
201.1 insert an object with timestamp attributes
4515+
???.? directly insert timestamp data
45164516
201.2 insert null values for timestamp attribute
45174517
201.3 insert undefined values for timestamp attribute
45184518
201.4 insert an empty JSON for timestamp attribute
45194519
201.5 call procedure with 2 OUT binds of DbObject
45204520

45214521
202. dbObject3.js
4522-
- 202.1 insert an object with TSZ type attributes
4522+
202.1 insert an object with TSZ type attributes
45234523
202.2 insert null value for TSZ type attribute
45244524
202.3 insert undefined value for TSZ type attribute
45254525
202.4 insert an empty JSON
@@ -4594,7 +4594,7 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
45944594

45954595
218. aq2.js
45964596
218.1 examples/aqobject.js
4597-
- 218.2 The read-only property "payloadTypeClass"
4597+
218.2 The read-only property "payloadTypeClass"
45984598
218.3 Negative - enqueue a raw JavaScript object directly
45994599
218.4 Negative - getQueue() without options on DB Object data
46004600
218.5 Enqueue a DB object as payload attribute
@@ -4606,8 +4606,8 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
46064606

46074607
219. aq3.js
46084608
219.1 The read-only property "name" of AqQueue Class
4609-
- 219.2 The read-only property "payloadType"
4610-
- 219.3 The read-only property "payloadTypeName"
4609+
219.2 The read-only property "payloadType"
4610+
219.3 The read-only property "payloadTypeName"
46114611
219.4 Negative - Set "maxMessages" argument to be -5
46124612
219.5 Negative - Set "maxMessages" argument to be 0
46134613
219.6 Enqueue a Buffer
@@ -4858,7 +4858,7 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
48584858
244.8.2 bind by position
48594859
244.9 testing JSON with oracledb.fetchAsString and fetchInfo oracledb.STRING
48604860
244.9.1 works with oracledb.fetchAsString
4861-
- 244.9.2 doesn't work with outFormat: oracledb.DB_TYPE_JSON
4861+
244.9.2 doesn't work with outFormat: oracledb.DB_TYPE_JSON
48624862
244.9.3 could work with fetchInfo oracledb.STRING
48634863

48644864
245. fetchLobAsStrBuf.js

0 commit comments

Comments
 (0)