pt-table-sync: Use single quotes in SHOW VARIABLES LIKE

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-07-31 06:46:13 -03:00
parent ba6253545d
commit 29b2e5d19b

View File

@@ -9214,7 +9214,7 @@ sub get_change_dbh {
# of the master (master-master replication). # of the master (master-master replication).
my $slave_status = $ms->get_slave_status($dst->{dbh}); my $slave_status = $ms->get_slave_status($dst->{dbh});
my (undef, $log_bin) = $dst->{dbh}->selectrow_array( my (undef, $log_bin) = $dst->{dbh}->selectrow_array(
'SHOW VARIABLES LIKE "log_bin"'); q{SHOW VARIABLES LIKE 'log_bin'});
my ($sql_log_bin) = $dst->{dbh}->selectrow_array( my ($sql_log_bin) = $dst->{dbh}->selectrow_array(
'SELECT @@SQL_LOG_BIN'); 'SELECT @@SQL_LOG_BIN');
PTDEBUG && _d('Variables on destination:', PTDEBUG && _d('Variables on destination:',