File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ def __connect_to_stream(self):
302
302
# we support it
303
303
if self .__use_checksum :
304
304
cur = self ._stream_connection .cursor ()
305
- cur .execute ("set @master_binlog_checksum= @@global.binlog_checksum" )
305
+ cur .execute ("SET @master_binlog_checksum= @@global.binlog_checksum" )
306
306
cur .close ()
307
307
308
308
if self .slave_uuid :
@@ -323,7 +323,7 @@ def __connect_to_stream(self):
323
323
# master_heartbeat_period is nanoseconds
324
324
heartbeat = int (heartbeat * 1000000000 )
325
325
cur = self ._stream_connection .cursor ()
326
- cur .execute ("set @master_heartbeat_period= %d" % heartbeat )
326
+ cur .execute ("SET @master_heartbeat_period= %d" % heartbeat )
327
327
cur .close ()
328
328
329
329
# When replicating from Mariadb 10.6.12 using binlog coordinates, a slave capability < 4 triggers a bug in
Original file line number Diff line number Diff line change @@ -106,16 +106,16 @@ def set_sql_mode(self):
106
106
"""set sql_mode to test with same sql_mode (mysql 5.7 sql_mode default is changed)"""
107
107
version = float (self .getMySQLVersion ().rsplit ('.' , 1 )[0 ])
108
108
if version == 5.7 :
109
- self .execute ("set @@sql_mode='NO_ENGINE_SUBSTITUTION'" )
109
+ self .execute ("SET @@sql_mode='NO_ENGINE_SUBSTITUTION'" )
110
110
111
111
def bin_log_format (self ):
112
- query = "select @@binlog_format"
112
+ query = "SELECT @@binlog_format"
113
113
cursor = self .execute (query )
114
114
result = cursor .fetchone ()
115
115
return result [0 ]
116
116
117
117
def bin_log_basename (self ):
118
- cursor = self .execute ('select @@log_bin_basename' )
118
+ cursor = self .execute ('SELECT @@log_bin_basename' )
119
119
bin_log_basename = cursor .fetchone ()[0 ]
120
120
bin_log_basename = bin_log_basename .split ("/" )[- 1 ]
121
121
return bin_log_basename
You can’t perform that action at this time.
0 commit comments