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
jdbc.TestFBResultSet#testRelAlias() and its cousin jdbc.TestFBResultSet3_0#testRelAlias() fail when run with test.gds_type=NATIVE with error:
expected:<[A]> but was:<[RDB$DATABASE]>
junit.framework.ComparisonFailure: expected:<[A]> but was:<[RDB$DATABASE]>
at org.firebirdsql.jdbc.TestFBResultSet.testRelAlias(TestFBResultSet.java:1171)
I can recreate this failure with the pure-java driver if I have AbstractJavaGdsImpl#getSqlPrepareInfo() always return the sql_prepare_info15 (which does not contain ISCConstants.isc_info_sql_relation_alias).
The text was updated successfully, but these errors were encountered:
Roman, I am not sure why this happens (or where the JNI implementation decides on the info it wants). Could you look at it?
I noticed that the java driver ignores the da_version in the iscDsqlDescribe and iscDsqlDescribeBind, while JNI (I assume) does use it. It looks like this parameter has always value 1, could that be the problem?
The java implementation requests a broader set of info with a bind, then the native implementation provides. An additional info call will be necessary to provide this info with the native implementation.
Submitted by: @mrotteveel
jdbc.TestFBResultSet#testRelAlias() and its cousin jdbc.TestFBResultSet3_0#testRelAlias() fail when run with test.gds_type=NATIVE with error:
expected:<[A]> but was:<[RDB$DATABASE]>
junit.framework.ComparisonFailure: expected:<[A]> but was:<[RDB$DATABASE]>
at org.firebirdsql.jdbc.TestFBResultSet.testRelAlias(TestFBResultSet.java:1171)
I can recreate this failure with the pure-java driver if I have AbstractJavaGdsImpl#getSqlPrepareInfo() always return the sql_prepare_info15 (which does not contain ISCConstants.isc_info_sql_relation_alias).
The text was updated successfully, but these errors were encountered: