Skip to content

Commit 8cc1942

Browse files
committed
Update a few test cases and move to 6.5.1 dev
1 parent 3a35151 commit 8cc1942

11 files changed

+39
-19
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# node-oracledb version 6.5.0
1+
# node-oracledb version 6.5.1-dev
2+
3+
**This release is under development and information may be incomplete**
24

35
The node-oracledb add-on for Node.js powers high performance Oracle Database
46
applications. Applications can be written in TypeScript, or directly in
57
JavaScript.
68

7-
Use node-oracledb 6.5.0 to connect Node.js 14.6, or later, to Oracle
9+
Use node-oracledb 6.5.1-dev to connect Node.js 14.6, or later, to Oracle
810
Database. Older versions of node-oracledb may work with older versions of
911
Node.js.
1012

doc/src/api_manual/oracledb.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ instead of ``result.metadata[0].fetchType == 2001``.
187187

188188
.. versionadded:: 6.5
189189

190-
Note that the values for these constants changed in node-oracledb 4.0.
190+
.. versionchanged:: 4.0
191+
192+
The values of the constants were changed. This change is not applicable to
193+
the constants introduced after node-oracledb 4.0.
191194

192195
.. _oracledbconstantsnodbtype:
193196

@@ -890,10 +893,10 @@ Constants for the :ref:`vectorFormat <execmetadata>` attribute.
890893
* - ``oracledb.VECTOR_FORMAT_FLOAT32``
891894
- 2
892895
- The storage format of each dimension value in the vector column is a 32-bit floating-point number.
893-
* - ``VECTOR_FORMAT_FLOAT64``
896+
* - ``oracledb.VECTOR_FORMAT_FLOAT64``
894897
- 3
895898
- The storage format of each dimension value in the vector column is a 64-bit floating-point number.
896-
* - ``VECTOR_FORMAT_INT8``
899+
* - ``oracledb.VECTOR_FORMAT_INT8``
897900
- 4
898901
- The storage format of each dimension value in the vector column is an 8-bit signed integer.
899902

doc/src/release_notes.rst

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ Common Changes
5151
See `PR #1572 <https://github.com/oracle/node-oracledb/pull/1572>`__
5252
(Slawomir Osoba).
5353

54+
#) Test case improvements and additions for the supported Oracle Database
55+
23ai features.
56+
57+
#) Documentation updates and additions for the supported Oracle Database
58+
23ai features.
59+
5460
Thin Mode Changes
5561
++++++++++++++++++
5662

examples/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,7 @@ File Name | Description
130130
[`soda1.js`](soda1.js) | Basic Simple Oracle Document Access (SODA) example
131131
[`typehandlerdate.js`](typehandlerdate.js) | Show how a type handler can format a queried date in a locale-specific way
132132
[`typehandlernum.js`](typehandlernum.js) | Show how a type handler can alter queried numbers
133+
[`vectortype1.js`](vectortype1.js) | Insert and query VECTOR columns.
134+
[`vectortype2.js`](vectortype2.js) | Insert data into VECTOR columns and verify vector operations.
133135
[`version.js`](version.js) | Shows the node-oracledb version attributes
134136
[`webapp.js`](webapp.js) | A simple web application using a connection pool

lib/version.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
module.exports = {
3232
VERSION_MAJOR: 6,
3333
VERSION_MINOR: 5,
34-
VERSION_PATCH: 0,
35-
VERSION_SUFFIX: ''
34+
VERSION_PATCH: 1,
35+
VERSION_SUFFIX: '-dev'
3636
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oracledb",
3-
"version": "6.5.0",
3+
"version": "6.5.1-dev",
44
"description": "A Node.js module for Oracle Database access from JavaScript and TypeScript",
55
"license": "(Apache-2.0 OR UPL-1.0)",
66
"homepage": "http://oracle.github.io/node-oracledb/",

test/blobDMLBindAsBuffer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2017, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2017, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -429,7 +429,7 @@ describe('82.blobDMLBindAsBuffer.js', function() {
429429
await checkInsertResult(id, content_2);
430430
}); // 82.2.1
431431

432-
it('82.2.2 update a cloumn with EMPTY_BLOB', async function() {
432+
it('82.2.2 update a column with EMPTY_BLOB', async function() {
433433
const id = insertID++;
434434
const contentLength_1 = 50000;
435435
const specialStr_1 = "82.2.2";

test/clobDMLBindAsString.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2017, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2017, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -415,7 +415,7 @@ describe('81. clobDMLBindAsString.js', function() {
415415
await checkInsertResult(id, content_2, specialStr_2);
416416
}); // 81.2.1
417417

418-
it('81.2.2 update a cloumn with EMPTY_CLOB', async function() {
418+
it('81.2.2 update a column with EMPTY_CLOB', async function() {
419419
const id = insertID++;
420420
const contentLength_1 = 50000;
421421
const specialStr_1 = "81.2.2";

test/list.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ Overview of node-oracledb functional tests
16571657
81.1.19 works with bind in maxSize smaller than string length
16581658
81.2 CLOB, UPDATE
16591659
81.2.1 update EMPTY_CLOB column
1660-
81.2.2 update a cloumn with EMPTY_CLOB
1660+
81.2.2 update a column with EMPTY_CLOB
16611661
81.2.3 update EMPTY_CLOB column with empty string
16621662
81.2.4 update empty string column
16631663
81.2.5 update a column with empty string
@@ -1685,7 +1685,7 @@ Overview of node-oracledb functional tests
16851685
82.1.19 works with bind in maxSize smaller than buffer size
16861686
82.2 BLOB, UPDATE
16871687
82.2.1 update EMPTY_BLOB column
1688-
82.2.2 update a cloumn with EMPTY_BLOB
1688+
82.2.2 update a column with EMPTY_BLOB
16891689
82.2.3 update EMPTY_BLOB column with empty buffer
16901690
82.2.4 update empty buffer column
16911691
82.2.5 update a column with empty buffer

test/listIndexes.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2023, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -42,11 +42,17 @@ describe('286. listIndexes.js', function() {
4242
let conn = null;
4343

4444
before(async function() {
45-
const runnable = await testsUtil.isSodaRunnable();
45+
let runnable = await testsUtil.isSodaRunnable();
46+
// For listIndexes, Oracle Client library version 19.13 (or later DBRU)
47+
// or version 21.3 (or higher) is needed
48+
runnable = runnable && (testsUtil.getClientVersion >= 1913000000 ||
49+
(testsUtil.getClientVersion >= 2100000000 && testsUtil.getClientVersion >= 2103000000))
50+
if (!oracledb.thin) {
51+
await sodaUtil.cleanup();
52+
}
4653
if (!runnable) {
4754
this.skip();
4855
}
49-
await sodaUtil.cleanup();
5056
conn = await oracledb.getConnection(dbconfig);
5157
});
5258

test/sodaOpLock.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2020, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2020, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -46,7 +46,8 @@ describe('287. sodaOpLock.js', () => {
4646
const clientVersion = testsUtil.getClientVersion();
4747

4848
let isClientOK;
49-
if (clientVersion < 2000000000) {
49+
if (clientVersion < 2000000000 ||
50+
(clientVersion >= 2100000000 && clientVersion < 2103000000)) {
5051
isClientOK = false;
5152
} else {
5253
isClientOK = true;

0 commit comments

Comments
 (0)