Skip to content

Commit 07af80e

Browse files
authored
[Fix] Exclude View tables (#48)
1 parent c9669d7 commit 07af80e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysql_ch_replicator/mysql_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def get_databases(self):
7171

7272
def get_tables(self):
7373
self.reconnect_if_required()
74-
self.cursor.execute('SHOW TABLES')
74+
self.cursor.execute('SHOW FULL TABLES')
7575
res = self.cursor.fetchall()
76-
tables = [x[0] for x in res]
76+
tables = [x[0] for x in res if x[1] == 'BASE TABLE']
7777
return tables
7878

7979
def get_binlog_files(self):

0 commit comments

Comments
 (0)