mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-01 18:25:59 +00:00
Merge pull request #863 from hpoettker/PT-2378_table_sync_with_more_fp_precision
PT-2378 - extended FP precision in pt-table-sync
This commit is contained in:
@@ -78,7 +78,10 @@ sub quote_val {
|
||||
&& !$args{is_char}; # unless is_char is true
|
||||
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1229861
|
||||
return $val if $args{is_float};
|
||||
if ( $args{is_float} ) {
|
||||
return sprintf("%.17g", $val) if $val - "$val" != 0;
|
||||
return $val;
|
||||
}
|
||||
|
||||
# Quote and return non-numeric vals.
|
||||
$val =~ s/(['\\])/\\$1/g;
|
||||
|
Reference in New Issue
Block a user