未验证 提交 9042ce6f 编写于 作者: J Jared Tan 提交者: GitHub

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

* fix null catalog

* update CHANGES.md
上级 56fe8a4b
......@@ -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
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册