Don't quote FLOAT or DOUBLE in Quoter::quote_val().

This commit is contained in:
Daniel Nichter
2013-10-10 15:58:02 -07:00
parent 5e46d013a9
commit 166173a318
4 changed files with 50 additions and 19 deletions

View File

@@ -77,6 +77,9 @@ sub quote_val {
return $val if $val =~ m/^0x[0-9a-fA-F]+$/ # quote hex data
&& !$args{is_char}; # unless is_char is true
# https://bugs.launchpad.net/percona-toolkit/+bug/1229861
return $val if $args{is_float};
# Quote and return non-numeric vals.
$val =~ s/(['\\])/\\$1/g;
return "'$val'";