You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
My iterator returns 'public function next() returns record{| record{} value; |}| sql:Error?', but when I do stream.next(), it's not returning my custom error - 'Error', and it's returning generic 'error' type. And hence I couldn't do,
record{| NumericInvalidColumn value; |}|sql:Error? data = streamData.next();
And I can only do.
record{| NumericInvalidColumn value; |}|error? data = streamData.next();
Compilation error:
ERROR: .::query-test.bal:71:64:: incompatible types: expected '(record {| NumericInvalidColumn value; |}|ballerina/sql:DatabaseError|ballerina/sql:ApplicationError)?', found '(record {| NumericInvalidColumn value; |}|error)?'
at org.ballerinalang.test.util.BRunUtil.getInvokedFunction(BRunUtil.java:1143)
at org.ballerinalang.test.util.BRunUtil.invokeFunction(BRunUtil.java:1162)
at org.ballerinalang.jdbc.query.NumericTypesQueryTest.testQueryNumericTypeRecord(NumericTypesQueryTest.java:83)
The text was updated successfully, but these errors were encountered:
Description:
My iterator returns 'public function next() returns record{| record{} value; |}| sql:Error?', but when I do stream.next(), it's not returning my custom error - 'Error', and it's returning generic 'error' type. And hence I couldn't do,
And I can only do.
Compilation error:
The text was updated successfully, but these errors were encountered: