mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-24 02:01:42 +08:00
misc test fixes for pt-table-checksum 5.7 compat
This commit is contained in:
@@ -56,6 +56,26 @@ sub new {
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
||||
# Sub: set_mode_string
|
||||
# sets sql_mode in traditional csv format
|
||||
#
|
||||
# Required Arguments:
|
||||
# string of valid formats in csv formta (or null string)
|
||||
#
|
||||
# Returns:
|
||||
# 1 if successful, 0 if error.
|
||||
sub set_mode_string {
|
||||
my ( $self, $sql_mode_string ) = @_;
|
||||
|
||||
die "I need a string" unless defined $sql_mode_string;
|
||||
|
||||
$self->{dbh}->do("set $self->{global} sql_mode = '$sql_mode_string'") || return 0;
|
||||
|
||||
PTDEBUG && _d('sql_mode changed to: ', $sql_mode_string);
|
||||
return 1;
|
||||
}
|
||||
|
||||
# Sub: add
|
||||
# adds one or more modes
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user