Skip to content

Commit a26fb58

Browse files
authored
Merge pull request julien-duponchelle#556 from HongGeonUi/enhancement/f-string-HongGeonUi2
fix : f-string formatting binlogstream.py L511
2 parents defbe40 + 810fd98 commit a26fb58

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("SET @slave_connect_state='%s'" % 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)