-
Notifications
You must be signed in to change notification settings - Fork 685
fix : f-string formatting binlogstream.py L511 #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix : f-string formatting binlogstream.py L511 #556
Conversation
it would be better to make commit message as english since this project runs globally |
dde88c4
to
e9d58a4
Compare
Sorry, I recognized that, but I had mistakes. |
pymysqlreplication/binlogstream.py
Outdated
@@ -507,7 +507,7 @@ def __set_mariadb_settings(self): | |||
# https://mariadb.com/kb/en/5-slave-registration/ | |||
cur = self._stream_connection.cursor() | |||
if self.auto_position is not None: | |||
cur.execute("SET @slave_connect_state='%s'" % self.auto_position) | |||
cur.execute(f'SET @slave_connect_state= "{self.auto_position}"') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change erase space
cur.execute(f'SET @slave_connect_state= "{self.auto_position}"') | |
cur.execute(f'SET @slave_connect_state="{self.auto_position}"') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I erase the space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks your hard work!
closes #536
I apply f-string formatting