Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdbc.TestFBResultSet#testRelAlias() fails under test.gds_type=NATIVE [JDBC208] #257

Closed
firebird-automations opened this issue Dec 13, 2011 · 7 comments

Comments

@firebird-automations
Copy link

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).

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

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?

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

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.

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

assignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

Fix Version: Jaybird 2.3 [ 10440 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

Fixed by the changes for JDBC197 (new protocol implementation)

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants