Skip to content

Commit 66b83b8

Browse files
committed
pgjdbc: Adjust for new result from conn.getMetaData().getCatalogs()
As before there was It looks actually correct now in 42.7, as `doc` is the schema, but not the catalog. The SQL statement returns `crate`, not `doc`. SELECT DISTINCT table_catalog FROM information_schema.tables On the upstream release notes: feat: return all catalogs for getCatalogs metadata query closes ISSUE #2949 PR #2953 -- https://jdbc.postgresql.org/changelogs/2023-11-20-42.7.0-release/
1 parent 379c713 commit 66b83b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

by-language/java-qa/src/test/java/io/crate/qa/JdbcMetaDataTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void test_getCatalogs() throws Exception {
122122
try (var conn = DriverManager.getConnection(URL)) {
123123
var result = conn.getMetaData().getCatalogs();
124124
assertThat(result.next(), is(true));
125-
assertThat(result.getString(1), is("doc"));
125+
assertThat(result.getString(1), is("crate"));
126126
}
127127
}
128128

0 commit comments

Comments
 (0)