Skip to content

Commit e9d58a4

Browse files
committed
Refactor : Apply f-string format binlogstream.py L511
1 parent 0e31c58 commit e9d58a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysqlreplication/binlogstream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def __set_mariadb_settings(self):
507507
# https://mariadb.com/kb/en/5-slave-registration/
508508
cur = self._stream_connection.cursor()
509509
if self.auto_position is not None:
510-
cur.execute(f'SET @slave_connect_state= f"{self.auto_position}"')
510+
cur.execute(f'SET @slave_connect_state= "{self.auto_position}"')
511511
cur.execute("SET @slave_gtid_strict_mode=1")
512512
cur.execute("SET @slave_gtid_ignore_duplicates=0")
513513
cur.close()

0 commit comments

Comments
 (0)