From c02bc49c785956fa365fef1645fe4d1908fee5f0 Mon Sep 17 00:00:00 2001 From: Kaneel Dias Date: Wed, 29 Jun 2022 11:59:30 +0530 Subject: [PATCH] Fix test case --- ballerina/tests/02-execute-basic-test.bal | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ballerina/tests/02-execute-basic-test.bal b/ballerina/tests/02-execute-basic-test.bal index 8605fb88..d0fe7173 100644 --- a/ballerina/tests/02-execute-basic-test.bal +++ b/ballerina/tests/02-execute-basic-test.bal @@ -129,8 +129,8 @@ isolated function testInsertAndSelectTableWithGeneratedKeys() returns sql:Error? string|int? insertedId = result.lastInsertId; if insertedId is string { sql:ParameterizedQuery query = `SELECT * from TestNumericTable where col_number = 31`; - stream streamData = oracledbClient->query(query); - record {|NumericRecord value;|}? data = check streamData.next(); + stream streamData = oracledbClient->query(query); + record {|record {} value;|}? data = check streamData.next(); check streamData.close(); test:assertNotExactEquals(data?.value, (), "Incorrect InsertId returned."); } else { @@ -151,8 +151,8 @@ isolated function testInsertWithAllNilAndSelectTableWithGeneratedKeys() returns string|int? insertedId = result.lastInsertId; if insertedId is string { sql:ParameterizedQuery query = `SELECT * from TestNumericTable where id = 2`; - stream streamData = oracledbClient->query(query); - record {|NumericRecord value;|}? data = check streamData.next(); + stream streamData = oracledbClient->query(query); + record {|record {} value;|}? data = check streamData.next(); check streamData.close(); test:assertNotExactEquals(data?.value, (), "Incorrect InsertId returned."); } else {