Skip to content

Commit

Permalink
only sync table
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjun0x01 committed Aug 17, 2023
1 parent 58cd5a5 commit 883c239
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ static MySqlSchemasInfo getMySqlTableInfos(
String databaseName = schemas.getString("TABLE_CAT");
Matcher databaseMatcher = databasePattern.matcher(databaseName);
if (databaseMatcher.matches()) {
try (ResultSet tables = metaData.getTables(databaseName, null, "%", null)) {
try (ResultSet tables =
metaData.getTables(
databaseName, null, "%", new String[] {"TABLE"})) {
while (tables.next()) {
String tableName = tables.getString("TABLE_NAME");
MySqlSchema mySqlSchema =
Expand Down

0 comments on commit 883c239

Please sign in to comment.