Skip to content

Commit 4b4715b

Browse files
committed
Test case update for indexedTables with Oracle 12.1 Database
1 parent 97750e0 commit 4b4715b

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

test/indexedTables01.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,11 @@ describe('237. indexedTables01.js', () => {
303303
}); // 237.7
304304

305305
it('237.8 DB_TYPE_TIMESTAMP', async function() {
306-
if (conn.oracleServerVersion < 1200000000) this.skip();
306+
/* Oracle Database versions 12.1.0.1 and
307+
earlier do not support this test case due to a bug
308+
which was later fixed in 12.1.0.2
309+
*/
310+
if (conn.oracleServerVersion < 1201000200) this.skip();
307311
const arr = [ new Date(), new Date(), new Date() ];
308312
const func = 'test_timestamp';
309313
const binds = {
@@ -317,7 +321,11 @@ describe('237. indexedTables01.js', () => {
317321
}); // 237.8
318322

319323
it('237.9 DB_TYPE_TIMESTAMP_LTZ', async function() {
320-
if (conn.oracleServerVersion < 1200000000) this.skip();
324+
/* Oracle Database versions 12.1.0.1 and
325+
earlier do not support this test case due to a bug
326+
which was later fixed in 12.1.0.2
327+
*/
328+
if (conn.oracleServerVersion < 1201000200) this.skip();
321329
const arr = [ new Date(), new Date(), new Date(), new Date() ];
322330
const func = 'test_timestamp_ltz';
323331
const binds = {
@@ -331,7 +339,11 @@ describe('237. indexedTables01.js', () => {
331339
}); // 237.9
332340

333341
it('237.10 DB_TYPE_TIMESTAMP_TZ', async function() {
334-
if (conn.oracleServerVersion < 1200000000) this.skip();
342+
/* Oracle Database versions 12.1.0.1 and
343+
earlier do not support this test case due to a bug
344+
which was later fixed in 12.1.0.2
345+
*/
346+
if (conn.oracleServerVersion < 1201000200) this.skip();
335347
const arr = [ new Date(), new Date(), new Date(), new Date(), new Date() ];
336348
const func = 'test_timestamp_tz';
337349
const binds = {
@@ -344,7 +356,7 @@ describe('237. indexedTables01.js', () => {
344356
assert.strictEqual(result.outBinds.retval, arr.length);
345357
}); // 237.10
346358

347-
it('237.10 DB_TYPE_RAW', async () => {
359+
it('237.11 DB_TYPE_RAW', async () => {
348360
const arr = [ Buffer.from("Raw 1"), Buffer.from("Raw 2") ];
349361
const func = 'test_raw';
350362
const binds = {
@@ -355,5 +367,5 @@ describe('237. indexedTables01.js', () => {
355367
const sql = `begin :retval := ${pkgName}.${func}(:inval); end;`;
356368
const result = await conn.execute(sql, binds);
357369
assert.strictEqual(result.outBinds.retval, arr.length);
358-
}); // 237.10
370+
}); // 237.11
359371
});

test/list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4732,7 +4732,7 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
47324732
237.8 DB_TYPE_TIMESTAMP
47334733
237.9 DB_TYPE_TIMESTAMP_LTZ
47344734
237.10 DB_TYPE_TIMESTAMP_TZ
4735-
237.10 DB_TYPE_RAW
4735+
237.11 DB_TYPE_RAW
47364736

47374737
238. soda14.js
47384738
238.1 the fetchArraySize() method works

0 commit comments

Comments
 (0)