ClickHouseConnection#prepareStatement(String, int)
should not throw an exception when Statement.RETURN_GENERATED_KEYS
is recognized
#1968
Labels
Describe the bug
com.clickhouse.jdbc.ClickHouseConnection#prepareStatement(String, int)
method in thecom.clickhouse:clickhouse-jdbc
ClickHouse JDBC driver should not throw an exception whenjava.sql.Statement.RETURN_GENERATED_KEYS
is recognized. See https://github.com/ClickHouse/clickhouse-java/blob/v0.7.1-patch1/clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/ClickHouseConnection.java#L126 .apache/shardingsphere
try to proxycom.clickhouse.jdbc.ClickHouseConnection
and generate distributed IDs from independent logic, which leads to strange handling like Adds documentation for ClickHouse support apache/shardingsphere#33779 .Steps to reproduce
Expected behaviour
com.clickhouse.jdbc.ClickHouseConnection#prepareStatement(String, int)
does not throw an exception whenautoGeneratedKeys
isjava.sql.Statement.RETURN_GENERATED_KEYS
.Code example
Error log
apache/shardingsphere
. An early investigation is at Improve GraalVM Reachability Metadata and corresponding nativeTest related unit tests apache/shardingsphere#29052 .Configuration
Environment
0.6.3
Language version
? If the template refers to the JDK version, I useGraalVM CE For 22.0.2
.Ubuntu 22.04.4 LTS
ClickHouse server
clickhouse/clickhouse-server:24.10.2.80
CREATE TABLE
statements for tables involved: None.The text was updated successfully, but these errors were encountered: