Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pg_chameleon/lib/mysql_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self):
Class constructor, the method sets the class variables and configure the
operating parameters from the args provided t the class.
"""
self.statement_skip = ['BEGIN', 'COMMIT']
self.statement_skip = ('BEGIN', 'COMMIT', 'SAVEPOINT')
self.schema_tables = {}
self.schema_mappings = {}
self.schema_loading = {}
Expand Down Expand Up @@ -1325,7 +1325,7 @@ def __read_replica_stream(self, batch_data):
except:
schema_query = binlogevent.schema

if binlogevent.query.strip().upper() not in self.statement_skip and schema_query in self.schema_mappings:
if not binlogevent.query.strip().upper().startswith(self.statement_skip) and schema_query in self.schema_mappings:
close_batch=True
destination_schema = self.schema_mappings[schema_query]
log_position = binlogevent.packet.log_pos
Expand Down