File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -466,11 +466,9 @@ describe('253. jsonBind1.js', function() {
466
466
it ( '253.2.10 INTERVAL YEAR TO MONTH type' , async ( ) => {
467
467
const sql = `INSERT into ` + tableName + ` VALUES (JSON_OBJECT( key 'key1' value json_scalar(to_yminterval(:b)) RETURNING JSON))` ;
468
468
if ( testsUtil . getClientVersion ( ) >= 2100000000 ) {
469
+ await conn . execute ( sql , [ '5-9' ] ) ;
469
470
await assert . rejects (
470
- async ( ) => {
471
- await conn . execute ( sql , [ '5-9' ] ) ;
472
- await conn . execute ( rsSelect ) ;
473
- } ,
471
+ async ( ) => await conn . execute ( rsSelect ) ,
474
472
/ N J S - 0 7 8 /
475
473
) ; //NJS-078: unsupported data type 2016 in JSON value
476
474
} else {
@@ -485,11 +483,9 @@ describe('253. jsonBind1.js', function() {
485
483
it ( '253.2.11 INTERVAL DAY TO SECOND type' , async function ( ) {
486
484
const sql = `INSERT into ` + tableName + ` VALUES (JSON_OBJECT( key 'key1' value json_scalar(to_dsinterval(:b)) RETURNING JSON))` ;
487
485
if ( testsUtil . getClientVersion ( ) >= 2100000000 ) {
486
+ await conn . execute ( sql , [ '11 10:09:08' ] ) ;
488
487
await assert . rejects (
489
- async ( ) => {
490
- await conn . execute ( sql , [ '11 10:09:08' ] ) ;
491
- await conn . execute ( rsSelect ) ;
492
- } ,
488
+ async ( ) => await conn . execute ( rsSelect ) ,
493
489
/ N J S - 0 7 8 /
494
490
) ; //NJS-078: unsupported data type 2015 in JSON value
495
491
} else {
You can’t perform that action at this time.
0 commit comments