Skip to content

Commit

Permalink
add quotes in set slave_uuid (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPensart authored Mar 31, 2024
1 parent ab9a5ca commit 2d2c7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymysqlreplication/binlogstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def __connect_to_stream(self):
if self.slave_uuid:
cur = self._stream_connection.cursor()
cur.execute(
f"SET @slave_uuid = {self.slave_uuid}, @replica_uuid = {self.slave_uuid}"
f"SET @slave_uuid = '{self.slave_uuid}', @replica_uuid = '{self.slave_uuid}'"
)
cur.close()

Expand Down

0 comments on commit 2d2c7b6

Please sign in to comment.