@@ -35,7 +35,7 @@ const testsUtil = require('./testsUtil.js');
35
35
36
36
const t_contents = sodaUtil . t_contents ;
37
37
38
- describe ( '174. soda6.js' , ( ) => {
38
+ describe ( '174. soda6.js' , function ( ) {
39
39
40
40
before ( async function ( ) {
41
41
const runnable = await testsUtil . isSodaRunnable ( ) ;
@@ -47,7 +47,7 @@ describe('174. soda6.js', () => {
47
47
await sodaUtil . cleanup ( ) ;
48
48
} ) ;
49
49
50
- it ( '174.1 filter() basic case' , async ( ) => {
50
+ it ( '174.1 filter() basic case' , async function ( ) {
51
51
let conn , collection ;
52
52
53
53
try {
@@ -86,7 +86,7 @@ describe('174. soda6.js', () => {
86
86
}
87
87
} ) ; // 174.1
88
88
89
- it ( '174.2 Negative - fiter(filterSpec) when filterSpec is null' , async ( ) => {
89
+ it ( '174.2 Negative - fiter(filterSpec) when filterSpec is null' , async function ( ) {
90
90
let conn , collection ;
91
91
92
92
try {
@@ -124,7 +124,7 @@ describe('174. soda6.js', () => {
124
124
}
125
125
} ) ; // 174.2
126
126
127
- it ( '174.3 filterSpec is OK to be an empty object' , async ( ) => {
127
+ it ( '174.3 filterSpec is OK to be an empty object' , async function ( ) {
128
128
let conn , collection ;
129
129
130
130
try {
@@ -162,7 +162,7 @@ describe('174. soda6.js', () => {
162
162
}
163
163
} ) ; // 174.3
164
164
165
- it ( '174.4 Key(), basic case' , async ( ) => {
165
+ it ( '174.4 Key(), basic case' , async function ( ) {
166
166
let conn , collection ;
167
167
168
168
try {
@@ -212,7 +212,7 @@ describe('174. soda6.js', () => {
212
212
}
213
213
} ) ; // 174.4
214
214
215
- it ( '174.5 Key(), no matched key' , async ( ) => {
215
+ it ( '174.5 Key(), no matched key' , async function ( ) {
216
216
let conn , collection ;
217
217
218
218
try {
@@ -250,7 +250,7 @@ describe('174. soda6.js', () => {
250
250
}
251
251
} ) ; // 174.5
252
252
253
- it ( '174.6 Negative - Key(null)' , async ( ) => {
253
+ it ( '174.6 Negative - Key(null)' , async function ( ) {
254
254
let conn , collection ;
255
255
256
256
try {
@@ -287,7 +287,7 @@ describe('174. soda6.js', () => {
287
287
}
288
288
} ) ; // 174.6
289
289
290
- it ( '174.7 Key(), invalid type' , async ( ) => {
290
+ it ( '174.7 Key(), invalid type' , async function ( ) {
291
291
let conn , collection ;
292
292
293
293
try {
@@ -326,7 +326,7 @@ describe('174. soda6.js', () => {
326
326
}
327
327
} ) ; // 174.7
328
328
329
- it ( '174.8 Keys(), basic case' , async ( ) => {
329
+ it ( '174.8 Keys(), basic case' , async function ( ) {
330
330
let conn , collection ;
331
331
332
332
try {
@@ -370,7 +370,7 @@ describe('174. soda6.js', () => {
370
370
}
371
371
} ) ; // 174.8
372
372
373
- it ( '174.9 Keys([]) empty array, it selects all documents' , async ( ) => {
373
+ it ( '174.9 Keys([]) empty array, it selects all documents' , async function ( ) {
374
374
let conn , collection ;
375
375
376
376
try {
@@ -414,7 +414,7 @@ describe('174. soda6.js', () => {
414
414
}
415
415
} ) ; // 174.9
416
416
417
- it ( '174.10 Negative - keys() no parameter' , async ( ) => {
417
+ it ( '174.10 Negative - keys() no parameter' , async function ( ) {
418
418
let conn , collection ;
419
419
420
420
try {
@@ -452,7 +452,7 @@ describe('174. soda6.js', () => {
452
452
}
453
453
} ) ; // 174.10
454
454
455
- it ( '174.11 Negative - keys(null)' , async ( ) => {
455
+ it ( '174.11 Negative - keys(null)' , async function ( ) {
456
456
let conn , collection ;
457
457
458
458
try {
@@ -491,7 +491,7 @@ describe('174. soda6.js', () => {
491
491
}
492
492
} ) ; // 174.11
493
493
494
- it ( '174.12 try to query documents with nonexistent keys' , async ( ) => {
494
+ it ( '174.12 try to query documents with nonexistent keys' , async function ( ) {
495
495
let conn , collection ;
496
496
497
497
try {
@@ -534,7 +534,16 @@ describe('174. soda6.js', () => {
534
534
}
535
535
} ) ; // 174.12
536
536
537
- it ( "174.13 hint(), basic case" , async ( ) => {
537
+ it ( "174.13 hint(), basic case" , async function ( ) {
538
+ // The SODA hint is available with Oracle Client 21.3 and
539
+ // in 19 from 19.11
540
+ if ( oracledb . oracleClientVersion < 2103000000 ) {
541
+ if ( oracledb . oracleClientVersion < 1911000000 ||
542
+ oracledb . oracleClientVersion >= 2000000000 ) {
543
+ this . skip ( ) ;
544
+ return ;
545
+ }
546
+ }
538
547
let conn , collection ;
539
548
540
549
try {
@@ -572,7 +581,16 @@ describe('174. soda6.js', () => {
572
581
}
573
582
} ) ; //174.13
574
583
575
- it ( "174.14 Negative - hint() no parameter" , async ( ) => {
584
+ it ( "174.14 Negative - hint() no parameter" , async function ( ) {
585
+ // The SODA hint is available with Oracle Client 21.3 and
586
+ // in 19 from 19.11
587
+ if ( oracledb . oracleClientVersion < 2103000000 ) {
588
+ if ( oracledb . oracleClientVersion < 1911000000 ||
589
+ oracledb . oracleClientVersion >= 2000000000 ) {
590
+ this . skip ( ) ;
591
+ return ;
592
+ }
593
+ }
576
594
let conn , collection ;
577
595
578
596
try {
@@ -610,7 +628,16 @@ describe('174. soda6.js', () => {
610
628
}
611
629
} ) ; //174.14
612
630
613
- it ( "174.15 Negative - hint() invalid parameter type" , async ( ) => {
631
+ it ( "174.15 Negative - hint() invalid parameter type" , async function ( ) {
632
+ // The SODA hint is available with Oracle Client 21.3 and
633
+ // in 19 from 19.11
634
+ if ( oracledb . oracleClientVersion < 2103000000 ) {
635
+ if ( oracledb . oracleClientVersion < 1911000000 ||
636
+ oracledb . oracleClientVersion >= 2000000000 ) {
637
+ this . skip ( ) ;
638
+ return ;
639
+ }
640
+ }
614
641
let conn , collection ;
615
642
616
643
try {
0 commit comments