Skip to content

Commit

Permalink
fix bug BASE TABLE as table name (#4217)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongchangyou authored and agapple committed Aug 11, 2022
1 parent f7ab505 commit 1e2bb37
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ private boolean dumpTableMeta(MysqlConnection connection, final CanalEventFilter
for (String schema : schemas) {
// filter views
packet = connection.query("show full tables from `" + schema + "` where Table_type = 'BASE TABLE'");
columnSize = packet.getFieldDescriptors().size();
int tableNameColumnIndex = 0; // default index is 0
List<String> tables = new ArrayList<>();
for (int line = 0; line < packet.getFieldValues().size() / columnSize; line++) {
Expand Down

0 comments on commit 1e2bb37

Please sign in to comment.