Skip to content

Commit

Permalink
Fix version check for system.tables.comment column in DatabaseMetaDat…
Browse files Browse the repository at this point in the history
…a.getTables
  • Loading branch information
ebyhr committed Jan 13, 2022
1 parent 75a6aa6 commit 3ec6042
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public ResultSet getTables(String catalog, String schemaPattern, String tableNam
List<ResultSet> results = new ArrayList<>(databases.size());
for (String database : databases) {
Map<String, String> params = new HashMap<>();
params.put("comment", connection.getServerVersion().check("[20.8,)") ? "t.comment" : "''");
params.put("comment", connection.getServerVersion().check("[21.6,)") ? "t.comment" : "''");
params.put("database", ClickHouseValues.convertToQuotedString(database));
params.put("table", ClickHouseChecker.isNullOrEmpty(tableNamePattern) ? "'%'"
: ClickHouseValues.convertToQuotedString(tableNamePattern));
Expand Down

0 comments on commit 3ec6042

Please sign in to comment.