Skip to content

Error code is always 0 when using newer JDBC versions #2717

@lilyrubich

Description

@lilyrubich

When using clickhouse-jdbc 0.9.4, SQLException.getErrorCode() always returns the default value 0, even when the ClickHouse server reports a specific error code.

The actual ClickHouse error code is present in the underlying ServerException, but it is not propagated to SQLException.getErrorCode().

ClickHouse JDBC driver: clickhouse-jdbc:0.9.4
Java: 17

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions