Skip to content

Commit 09b317d

Browse files
committed
Final changes and example updates for 6.8 release
1 parent 29d8819 commit 09b317d

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

doc/src/release_notes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ node-oracledb Release Notes
88
For deprecated and desupported features, see
99
:ref:`Deprecations and desupported features <deprecations>`.
1010

11-
node-oracledb `v6.8.0 <https://github.com/oracle/node-oracledb/compare/v6.7.1...v6.8.0>`__ (TBD)
11+
node-oracledb `v6.8.0 <https://github.com/oracle/node-oracledb/compare/v6.7.1...v6.8.0>`__ (26 Feb 2025)
1212
---------------------------------------------------------------------------------------------------------
1313

1414
Common Changes

examples/sampleocicloudnativetokenauth.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ async function run() {
7979
// connectString: The NODE_ORACLEDB_CONNECTIONSTRING environment
8080
// variable set to the Oracle Net alias or connect
8181
// descriptor of your Oracle Autonomous Database
82+
// walletPassword: Required if we are using mTLS connection
8283
// Configuration for tokenAuthConfigOci:
8384
// authType: Must be set to authentication type.
8485
// Types are:
@@ -96,6 +97,7 @@ async function run() {
9697
externalAuth: true,
9798
homogeneous: true,
9899
connectString: process.env.NODE_ORACLEDB_CONNECTIONSTRING,
100+
walletPassword: process.env.NODE_ORACLEDB_WALLET_PASSWORD,
99101
};
100102

101103
try {
@@ -136,7 +138,7 @@ async function createConnection() {
136138
}
137139

138140
async function closePoolAndExit() {
139-
console.log('\nTerminating');
141+
console.log('\nExiting the program');
140142
try {
141143
// Get the pool from the pool cache and close it
142144
await oracledb.getPool().close(0);

examples/sampleocitokenauth.js

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

33
/******************************************************************************
44
*
@@ -149,6 +149,7 @@ async function run() {
149149
// connectString: The NODE_ORACLEDB_CONNECTIONSTRING environment
150150
// variable set to the Oracle Net alias or connect
151151
// descriptor of your Oracle Autonomous Database
152+
// walletPassword: Required if we are using mTLS connection
152153
// accessTokenConfig: Parameter values needed for token generation
153154
// through OCI SDK.
154155
// Configuration for accessTokenConfig:
@@ -165,6 +166,7 @@ async function run() {
165166
externalAuth: true,
166167
homogeneous: true,
167168
connectString: process.env.NODE_ORACLEDB_CONNECTIONSTRING,
169+
walletPassword: process.env.NODE_ORACLEDB_WALLET_PASSWORD,
168170
};
169171

170172
try {
@@ -205,7 +207,7 @@ async function createConnection() {
205207
}
206208

207209
async function closePoolAndExit() {
208-
console.log('\nTerminating');
210+
console.log('\nExiting the program');
209211
try {
210212
// Get the pool from the pool cache and close it
211213
await oracledb.getPool().close(0);

test/binding_DMLInsert.js

+4-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, 2025, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -104,7 +104,9 @@ describe('92.binding_DMLInsert.js', function() {
104104
},
105105
// ORA-01877: string is too long for internal buffer
106106
// ORA-01866: the datetime class is invalid
107-
/ORA-01877:|ORA-01866:/
107+
// ORA-01830: The string being converted to a date is too long to
108+
// match the date format 'DD-MON-RR HH.MI.SSXFF AM'
109+
/ORA-01877:|ORA-01866:|ORA-01830:/
108110
);
109111
}
110112
if (dbColType === "BLOB" || dbColType.indexOf("RAW") > -1) {

test/connection.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,14 @@ describe('1. connection.js', function() {
849849

850850
// Whitespaces, comma, ( and ) are replaced by ? for the program name
851851
// in V$SESSION
852-
const sanitizedProgName = process.argv0.replace(/[\s(),]/g, '?');
852+
let sanitizedProgName = process.argv0.replace(/[\s(),]/g, '?');
853+
/*
854+
In Oracle < 23.0 DB, The program name (program column in v$session view)
855+
can be set only upto 48 characters.
856+
*/
857+
const serverVersion = conn.oracleServerVersion;
858+
if (serverVersion < 2300000000)
859+
sanitizedProgName = sanitizedProgName.substring(0, 48);
853860

854861
// Fetch values from v$session
855862
let res = await conn.execute(sqlSessionDetails);
@@ -875,7 +882,6 @@ describe('1. connection.js', function() {
875882
In Oracle 12.1.1 DB, The driver name (CLIENT_DRIVER column in V$SESSION_CONNECT_INFO view)
876883
can be set only upto 8 characters.
877884
*/
878-
const serverVersion = conn.oracleServerVersion;
879885
if (serverVersion < 1201000200)
880886
assert.strictEqual(res.rows[0][0], "node-ora");
881887
else assert.strictEqual(res.rows[0][0], "node-oracledb : " + oracledb.versionString + " thn");

0 commit comments

Comments
 (0)