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() {
466466 it ( '253.2.10 INTERVAL YEAR TO MONTH type' , async ( ) => {
467467 const sql = `INSERT into ` + tableName + ` VALUES (JSON_OBJECT( key 'key1' value json_scalar(to_yminterval(:b)) RETURNING JSON))` ;
468468 if ( testsUtil . getClientVersion ( ) >= 2100000000 ) {
469+ await conn . execute ( sql , [ '5-9' ] ) ;
469470 await assert . rejects (
470- async ( ) => {
471- await conn . execute ( sql , [ '5-9' ] ) ;
472- await conn . execute ( rsSelect ) ;
473- } ,
471+ async ( ) => await conn . execute ( rsSelect ) ,
474472 / N J S - 0 7 8 /
475473 ) ; //NJS-078: unsupported data type 2016 in JSON value
476474 } else {
@@ -485,11 +483,9 @@ describe('253. jsonBind1.js', function() {
485483 it ( '253.2.11 INTERVAL DAY TO SECOND type' , async function ( ) {
486484 const sql = `INSERT into ` + tableName + ` VALUES (JSON_OBJECT( key 'key1' value json_scalar(to_dsinterval(:b)) RETURNING JSON))` ;
487485 if ( testsUtil . getClientVersion ( ) >= 2100000000 ) {
486+ await conn . execute ( sql , [ '11 10:09:08' ] ) ;
488487 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 ) ,
493489 / N J S - 0 7 8 /
494490 ) ; //NJS-078: unsupported data type 2015 in JSON value
495491 } else {
You can’t perform that action at this time.
0 commit comments