Skip to content

Commit

Permalink
resolve test error
Browse files Browse the repository at this point in the history
  • Loading branch information
ebang091 committed Sep 11, 2023
1 parent 34977e0 commit 0778fba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymysqlreplication/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,9 @@ def __init__(self,
self.packet.advance(1)

#string[EOF] query
self.query: str = self.packet.read(event_size - 13 - self.status_vars_length
- self.schema_length - 1).decode("utf-8")
query = self.packet.read(event_size - 13 - self.status_vars_length
- self.schema_length - 1)
self.query:str = query.decode("utf-8", errors='backslashreplace')

def _dump(self) -> None:
"""Dump the python objects for the event."""
Expand Down

0 comments on commit 0778fba

Please sign in to comment.