@@ -131,10 +131,22 @@ describe('98.binding_DMLReturningInto.js', function() {
131
131
} ;
132
132
133
133
var compareBufErrMsg = function ( element , err ) {
134
- if ( element === "RAW" || element === "BLOB" ) {
135
- should . not . exist ( err ) ;
136
- } else {
137
- ( err . message ) . should . startWith ( 'ORA-00932:' ) ;
134
+
135
+ switch ( element ) {
136
+ case "RAW" :
137
+ case "BLOB" :
138
+ should . not . exist ( err ) ;
139
+ break ;
140
+ case "CHAR" :
141
+ case "NCHAR" :
142
+ case "VARCHAR2" :
143
+ if ( err ) {
144
+ // ORA-01465: invalid hex number
145
+ ( err . message ) . should . startWith ( 'ORA-01465:' ) ;
146
+ }
147
+ break ;
148
+ default :
149
+ ( err . message ) . should . startWith ( 'ORA-00932:' ) ;
138
150
}
139
151
} ;
140
152
@@ -281,7 +293,7 @@ describe('98.binding_DMLReturningInto.js', function() {
281
293
doTest ( table_name , dbColType , content , bindType , nullBind , done ) ;
282
294
} ) ;
283
295
284
- it . skip ( '98.1.14 oracledb.BUFFER <--> DB: CHAR' , function ( done ) {
296
+ it ( '98.1.14 oracledb.BUFFER <--> DB: CHAR' , function ( done ) {
285
297
index ++ ;
286
298
var table_name = tableNamePre + index ;
287
299
var content = assist . createBuffer ( 100 ) ;
@@ -291,7 +303,7 @@ describe('98.binding_DMLReturningInto.js', function() {
291
303
doTest ( table_name , dbColType , content , bindType , nullBind , done ) ;
292
304
} ) ;
293
305
294
- it . skip ( '98.1.15 oracledb.BUFFER <--> DB: NCHAR' , function ( done ) {
306
+ it ( '98.1.15 oracledb.BUFFER <--> DB: NCHAR' , function ( done ) {
295
307
index ++ ;
296
308
var table_name = tableNamePre + index ;
297
309
var content = assist . createBuffer ( 100 ) ;
@@ -301,7 +313,7 @@ describe('98.binding_DMLReturningInto.js', function() {
301
313
doTest ( table_name , dbColType , content , bindType , nullBind , done ) ;
302
314
} ) ;
303
315
304
- it . skip ( '98.1.16 oracledb.BUFFER <--> DB: VARCHAR2' , function ( done ) {
316
+ it ( '98.1.16 oracledb.BUFFER <--> DB: VARCHAR2' , function ( done ) {
305
317
index ++ ;
306
318
var table_name = tableNamePre + index ;
307
319
var content = assist . createBuffer ( 100 ) ;
@@ -523,7 +535,7 @@ describe('98.binding_DMLReturningInto.js', function() {
523
535
doTest ( table_name , dbColType , content , bindType , nullBind , done ) ;
524
536
} ) ;
525
537
526
- it . skip ( '98.2.14 oracledb.BUFFER <--> DB: CHAR' , function ( done ) {
538
+ it ( '98.2.14 oracledb.BUFFER <--> DB: CHAR' , function ( done ) {
527
539
index ++ ;
528
540
var table_name = tableNamePre + index ;
529
541
var content = null ;
@@ -533,7 +545,7 @@ describe('98.binding_DMLReturningInto.js', function() {
533
545
doTest ( table_name , dbColType , content , bindType , nullBind , done ) ;
534
546
} ) ;
535
547
536
- it . skip ( '98.2.15 oracledb.BUFFER <--> DB: NCHAR' , function ( done ) {
548
+ it ( '98.2.15 oracledb.BUFFER <--> DB: NCHAR' , function ( done ) {
537
549
index ++ ;
538
550
var table_name = tableNamePre + index ;
539
551
var content = null ;
@@ -543,7 +555,7 @@ describe('98.binding_DMLReturningInto.js', function() {
543
555
doTest ( table_name , dbColType , content , bindType , nullBind , done ) ;
544
556
} ) ;
545
557
546
- it . skip ( '98.2.16 oracledb.BUFFER <--> DB: VARCHAR2' , function ( done ) {
558
+ it ( '98.2.16 oracledb.BUFFER <--> DB: VARCHAR2' , function ( done ) {
547
559
index ++ ;
548
560
var table_name = tableNamePre + index ;
549
561
var content = null ;
0 commit comments