Skip to content

Conversation

@lilyrubich
Copy link
Contributor

@lilyrubich lilyrubich commented Jan 21, 2026

Summary

Added pass error vendor code from ServerException to SqlException for issue #2717

Checklist


Note

Ensures JDBC surfaces server error codes to callers.

  • In ExceptionUtils.toSqlState(...), the ServerException branch now constructs SQLException(message, SQL_STATE_DATA_EXCEPTION, serverException.getCode(), cause) to include the vendor error code.

Written by Cursor Bugbot for commit 0df409c. This will update automatically on new commits. Configure here.

@CLAassistant
Copy link

CLAassistant commented Jan 21, 2026

CLA assistant check
All committers have signed the CLA.

@chernser
Copy link
Contributor

@lilyrubich ,

appreciate your contribution!

@mshustov
Copy link
Member

@chernser let's add a test in a follow-up

@chernser chernser merged commit 25f84a4 into ClickHouse:main Jan 21, 2026
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants