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