Skip to content

jdbc: database metadata: exception when trying to get primary keys for a table #41

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

Closed
ztarvos opened this issue Sep 5, 2018 · 1 comment
Assignees
Labels
bug Something isn't working jdbc
Milestone

Comments

@ztarvos
Copy link

ztarvos commented Sep 5, 2018

The API DatabaseMetaData.getColumns() throws an unexpected exception.

Exception in thread "main" java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List at org.tarantool.jdbc.SQLDatabaseMetadata.getPrimaryKeys(SQLDatabaseMetadata.java:779) at TestJdbcPK.main(TestJdbcPK.java:14)

@kyukhin kyukhin added the bug Something isn't working label Sep 20, 2018
ztarvos added a commit to ztarvos/tarantool-java that referenced this issue Sep 26, 2018
Fixed parsing primary keys metadata response.
Updated integration tests.

Closes tarantool#41
ztarvos added a commit to ztarvos/tarantool-java that referenced this issue Oct 2, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes tarantool#41
ztarvos added a commit to ztarvos/tarantool-java that referenced this issue Oct 10, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes tarantool#41
ztarvos added a commit to ztarvos/tarantool-java that referenced this issue Oct 10, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes tarantool#41
ztarvos added a commit to ztarvos/tarantool-java that referenced this issue Oct 10, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes tarantool#41
@Totktonada Totktonada added the jdbc label Nov 1, 2018
@Totktonada Totktonada added this to the JDBC MVP milestone Nov 1, 2018
@Totktonada
Copy link
Member

Fixed in 06b7ffb.

Totktonada pushed a commit that referenced this issue Dec 11, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes #41
Totktonada pushed a commit that referenced this issue Dec 11, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes #41

----

Rebase fixes (Alexander Turenko):

* Start jdk-testing instance using TarantoolControl in
  JdbcExceptionHandlingTest.
Totktonada pushed a commit that referenced this issue Dec 11, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes #41

----

Rebase fixes (Alexander Turenko):

* Start / stop jdk-testing instance using TarantoolControl in
  JdbcExceptionHandlingTest.
Totktonada pushed a commit that referenced this issue Dec 12, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes #41

----

Rebase fixes (Alexander Turenko):

* Start / stop jdk-testing instance using TarantoolControl in
  JdbcExceptionHandlingTest.
Totktonada pushed a commit that referenced this issue Dec 12, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes #41

----

Rebase fixes (Alexander Turenko):

* Start / stop jdk-testing instance using TarantoolControl in
  JdbcExceptionHandlingTest.
Totktonada pushed a commit that referenced this issue Dec 12, 2018
Fixed several mistakes in get primary keys metadata API.
Corrected type mismatch when parsing server response.
Added sorting of result rows by column name.
Fixed order of columns in result set.
Wrapped errors into SQLException.
Improved test coverage.

Closes #41

----

Rebase fixes (Alexander Turenko):

* Start / stop jdk-testing instance using TarantoolControl in
  JdbcExceptionHandlingTest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jdbc
Projects
None yet
Development

No branches or pull requests

3 participants