File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 44
55import com .clickhouse .client .api .metadata .TableSchema ;
66import com .clickhouse .data .ClickHouseColumn ;
7+ import com .clickhouse .jdbc .JdbcTypeMapping ;
78import com .clickhouse .jdbc .JdbcV2Wrapper ;
89import com .clickhouse .jdbc .ResultSetImpl ;
910import com .clickhouse .jdbc .internal .JdbcUtils ;
@@ -165,6 +166,7 @@ public boolean isDefinitelyWritable(int column) throws SQLException {
165166
166167 @ Override
167168 public String getColumnClassName (int column ) throws SQLException {
168- throw new SQLException ("Not implemented" , ExceptionUtils .SQL_STATE_FEATURE_NOT_SUPPORTED );
169+ JdbcTypeMapping mapping = JdbcTypeMapping .getDefaultMapping ();
170+ return mapping .toJavaClass (getColumn (column ), Map .of ()).getCanonicalName ();
169171 }
170172}
You can’t perform that action at this time.
0 commit comments