Skip to content

Commit 04b4bce

Browse files
committed
Documentation and test updates
1 parent de590ce commit 04b4bce

File tree

5 files changed

+58
-50
lines changed

5 files changed

+58
-50
lines changed

doc/src/release_notes.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Common Changes
3838
#) Added support for an Oracle Database 23ai JSON feature improving JSON
3939
storage usage.
4040

41-
#) Updated the error thrown during pool reconfiguration from ``ORA-24413`` to
41+
#) Updated error thrown during pool reconfiguration from ``ORA-24413`` to
4242
``NJS-007`` when ``poolMax`` is *0*.
4343

4444
#) Error ``NJS-092`` is now thrown during
@@ -60,7 +60,7 @@ Common Changes
6060
Thin Mode Changes
6161
++++++++++++++++++
6262

63-
#) Updated the ClientInfo terminal parameter to remove the hardcoded value.
63+
#) Updated ClientInfo terminal parameter to remove the hardcoded value.
6464
See `Issue #1662 <https://github.com/oracle/node-oracledb/issues/1662>`__.
6565

6666
#) Fixed issue with connecting to Oracle Database, when the full path of
@@ -98,24 +98,24 @@ Thin Mode Changes
9898
Thick Mode Changes
9999
+++++++++++++++++++
100100

101-
#) Fixed an issue with privileges that prevented the
101+
#) Fixed issue with privileges that prevented the
102102
:meth:`oracledb.startup()` method from bringing up the database.
103103

104104
#) Tightened code to avoid possible unexpected runtime errors during token
105105
callback.
106106

107-
#) Fixed an issue that caused unexpected behavior with SODA functions in
107+
#) Fixed issue that caused unexpected behavior with SODA functions in
108108
some platforms.
109109

110-
#) Fixed the bug which inserted the invalid value `~` into the database
110+
#) Fixed bug which inserted the invalid value `~` into the database
111111
if an unacceptable out-of-bounds number is bound to a DML statement. Now,
112112
numbers such as 1.0e+128, -1e128, and so on will throw an error
113113
``NJS-115: value cannot be represented as an Oracle Database number``.
114114
Additionally, this fix resolves the issue related to JS numbers with
115115
precisions where `2.3` is returned as `2.300003`.
116116
See `Issue #1659 <https://github.com/oracle/node-oracledb/issues/1659>`__.
117117

118-
#) Fixed a regression that caused :meth:`~aqQueue.deqOne()` and
118+
#) Fixed regression that caused :meth:`~aqQueue.deqOne()` and
119119
:meth:`~aqQueue.deqMany()` to return an invalid object in node-oracledb
120120
6.4 instead of undefined, which was returned in the previous releases.
121121
See `Issue #1656 <https://github.com/oracle/node-oracledb/issues/1656>`__.
@@ -188,7 +188,7 @@ Common Changes
188188
Thin Mode Changes
189189
++++++++++++++++++
190190

191-
#) Fixed the intermittent error ``NJS-103`` which was seen while fetching
191+
#) Fixed intermittent error ``NJS-103`` which was seen while fetching
192192
large number of CLOB columns whose metadata is split across multiple
193193
packets.
194194
`Issue #1642 <https://github.com/oracle/node-oracledb/issues/1642>`__.
@@ -367,7 +367,7 @@ Thick Mode Changes
367367
<enablingthick>` binary module. `PR #1602
368368
<https://github.com/oracle/node-oracledb/pull/1602>`__ (Kwok Chun Man).
369369

370-
#) Fixed a segfault while populating a collection with a BLOB
370+
#) Fixed segfault while populating a collection with a BLOB
371371
property. See `node-oracledb public Slack channel
372372
<https://node-oracledb.slack.com/ archives/CCM8AMSF7/p1694544451676639>`__.
373373

@@ -516,7 +516,7 @@ Thin Mode Changes
516516
in the `V$CPOOL_STATS` view by default. This fix optimizes the use of DRCP
517517
connections.
518518

519-
#) Fixed the issue where dates with negative years are not inserted and
519+
#) Fixed issue where dates with negative years are not inserted and
520520
fetched correctly.
521521

522522
#) Error handling and message improvements:

doc/src/user_guide/connection_handling.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,10 +2983,12 @@ applications more control over pooled server reuse.
29832983
29842984
You should thoroughly test your application when using implicit connection
29852985
pooling to ensure that the internal reuse of database servers does not cause
2986-
any problems. For example, the connection `session id and serial number
2987-
<https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-9F0DCAEA-A67E
2988-
-4183-89E7-B1555DC591CE>`__ may vary throughout the lifetime of the
2989-
application connection as different servers may be used at different times.
2986+
any problems. For example, any session state such as the connection `session
2987+
id and serial number <https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id
2988+
=GUID-9F0DCAEA-A67E-4183-89E7-B1555DC591CE>`__ will vary throughout the
2989+
lifetime of the application connection because different servers may be used
2990+
at different times. Another example is when using a statement boundary of
2991+
*transaction*. In this scenario, any commit can invalidate open cursors.
29902992
29912993
.. _privconn:
29922994

test/dataTypeXML.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ describe('181. dataTypeXML.js', function() {
5555

5656
before('create table and insert a row', async function() {
5757

58+
// Storing XMLType column as clob is disallowed in Oracle ADB.
59+
if (dbConfig.test.isCloudService) this.skip();
60+
5861
const connection = await oracledb.getConnection(dbConfig);
5962

6063
let sql =
@@ -93,6 +96,9 @@ describe('181. dataTypeXML.js', function() {
9396
}); // before
9497

9598
after('drop table', async () => {
99+
100+
if (dbConfig.test.isCloudService) return;
101+
96102
const connection = await oracledb.getConnection(dbConfig);
97103
const sql = "BEGIN EXECUTE IMMEDIATE 'DROP TABLE " + tableName + "'; " +
98104
"EXCEPTION WHEN OTHERS THEN IF SQLCODE <> -942 THEN RAISE; END IF; END;";

test/list.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -813,13 +813,13 @@ Overview of node-oracledb functional tests
813813
55.8.1
814814
55.9 calls getRows() once and then close RS before getting more rows
815815
55.9.1
816-
55.10 resultSet with unsupported data types
817-
55.10.1 INTERVAL YEAR TO MONTH data type
818-
55.11 bind a cursor BIND_INOUT
819-
55.11.1 has not supported binding a cursor with BIND_INOUT
820-
55.12 Invalid Ref Cursor
821-
55.12.1
822-
55.13 use Resultset asyncIterator
816+
55.10 use Resultset asyncIterator
817+
55.10.1
818+
55.11 NEgative - resultSet with unsupported data types
819+
55.11.1 INTERVAL YEAR TO MONTH data type
820+
55.12 bind a cursor BIND_INOUT
821+
55.12.1 has not supported binding a cursor with BIND_INOUT
822+
55.13 Negative - Invalid Ref Cursor
823823
55.13.1
824824

825825
56. fetchAs.js

test/resultSet2.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -430,17 +430,39 @@ describe('55. resultSet2.js', function() {
430430
});
431431
}); // 55.9
432432

433-
describe('55.10 resultSet with unsupported data types', function() {
434-
it('55.10.1 INTERVAL YEAR TO MONTH data type', async function() {
433+
describe('55.10 use Resultset asyncIterator', function() {
434+
before(async function() {
435+
await setUp(connection, tableName);
436+
});
437+
438+
after(async function() {
439+
await clearUp(connection, tableName);
440+
});
441+
442+
it('55.10.1 ', async function() {
443+
const result = await connection.execute(
444+
"SELECT * FROM nodb_rs2_emp ORDER BY employees_id",
445+
[],
446+
{ resultSet: true });
447+
const rs = result.resultSet;
448+
for await (const row of rs) {
449+
assert.strictEqual(row.length, 2);
450+
}
451+
await rs.close();
452+
});
453+
}); // 55.10
454+
455+
describe('55.11 Negative - resultSet with unsupported data types', function() {
456+
it('55.11.1 INTERVAL YEAR TO MONTH data type', async function() {
435457
await assert.rejects(async () => {
436458
await connection.execute(
437459
"SELECT dummy, to_yminterval('1-3') FROM dual", [], { resultSet: true });
438460
}, /NJS-010:/);
439461
});
440462

441-
}); // 55.10
463+
}); // 55.11
442464

443-
describe.skip('55.11 bind a cursor BIND_INOUT', function() {
465+
describe.skip('55.12 bind a cursor BIND_INOUT', function() {
444466

445467
before('prepare table nodb_rs2_emp', async function() {
446468
await setUp(connection, tableName);
@@ -450,7 +472,7 @@ describe('55. resultSet2.js', function() {
450472
await clearUp(connection, tableName);
451473
});
452474

453-
it('55.11.1 has not supported binding a cursor with BIND_INOUT', async function() {
475+
it('55.12.1 has not supported binding a cursor with BIND_INOUT', async function() {
454476
const proc =
455477
"CREATE OR REPLACE PROCEDURE nodb_rs2_get_emp_inout (p_in IN NUMBER, p_out IN OUT SYS_REFCURSOR) \
456478
AS \
@@ -471,9 +493,9 @@ describe('55. resultSet2.js', function() {
471493
await connection.execute("DROP PROCEDURE nodb_rs2_get_emp_inout");
472494
});
473495

474-
}); // 55.11
496+
}); // 55.12
475497

476-
describe('55.12 Invalid Ref Cursor', function() {
498+
describe('55.13 Negative - Invalid Ref Cursor', function() {
477499
const proc =
478500
"CREATE OR REPLACE PROCEDURE get_invalid_refcur (p OUT SYS_REFCURSOR) " +
479501
" AS " +
@@ -491,7 +513,7 @@ describe('55. resultSet2.js', function() {
491513
await clearUp(connection, tableName);
492514
});
493515

494-
it('55.12.1 ', async function() {
516+
it('55.13.1 ', async function() {
495517
await assert.rejects(async () => {
496518
await connection.execute(
497519
"BEGIN get_invalid_refcur ( :p ); END; ",
@@ -501,28 +523,6 @@ describe('55. resultSet2.js', function() {
501523
}, /NJS-107:/);
502524

503525
});
504-
}); // 55.12
505-
506-
describe('55.13 use Resultset asyncIterator', function() {
507-
before(async function() {
508-
await setUp(connection, tableName);
509-
});
510-
511-
after(async function() {
512-
await clearUp(connection, tableName);
513-
});
514-
515-
it('55.13.1 ', async function() {
516-
const result = await connection.execute(
517-
"SELECT * FROM nodb_rs2_emp ORDER BY employees_id",
518-
[],
519-
{ resultSet: true });
520-
const rs = result.resultSet;
521-
for await (const row of rs) {
522-
assert.strictEqual(row.length, 2);
523-
}
524-
await rs.close();
525-
});
526526
}); // 55.13
527527

528528
});

0 commit comments

Comments
 (0)