fix storage-jdbc isExists not set dbname (#5786)

* fix null catalog

* update CHANGES.md
This commit is contained in:
Jared Tan 2020-11-04 11:37:54 +08:00 committed by GitHub
parent 56fe8a4b41
commit 9042ce6fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ Release Notes.
* Improve the queryable tags generation. Remove the duplicated tags to reduce the storage payload.
* Fix the excessive timeout period set by the kubernetes-client.
* Fix deadlock problem when using elasticsearch-client-7.0.0.
* Fix storage-jdbc isExists not set dbname.
#### UI

View File

@ -58,7 +58,7 @@ public class MySQLTableInstaller extends H2TableInstaller {
TableMetaInfo.addModel(model);
JDBCHikariCPClient h2Client = (JDBCHikariCPClient) client;
try (Connection conn = h2Client.getConnection()) {
try (ResultSet rset = conn.getMetaData().getTables(null, null, model.getName(), null)) {
try (ResultSet rset = conn.getMetaData().getTables(conn.getCatalog(), null, model.getName(), null)) {
if (rset.next()) {
return true;
}