Skip to content

Commit

Permalink
fix the bug of get tables
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingYu-Z committed Mar 4, 2021
1 parent b30a3c6 commit 84f2157
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/java/cn/beingyi/mysql/core/ReadyCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public ReadyCore(Ready ready) throws Exception {
try {
Connection con = getConnection();
DatabaseMetaData db = con.getMetaData();
ResultSet resultSet = db.getTables(null, null, null, new String[]{"TABLE"});
ResultSet resultSet = db.getTables(con.getCatalog(), null, null, new String[]{"TABLE"});
while (resultSet.next()) {
tableNames.add(resultSet.getString(3));
}
Expand Down

0 comments on commit 84f2157

Please sign in to comment.