mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-05-08 03:06:21 +08:00
ad57c0fc1b
Fixed escape() function to properly escape special characters (tabs, newlines, backslashes) in the correct order when using --bulk-insert. The original single regex replacement could cause incorrect escaping order. Now escaping is done in sequence: backslash first, then newline, then tab, ensuring proper field alignment when data contains these special characters. Fixes issue where fields would misalign when archiving data containing tabs, newlines, or backslashes with --bulk-insert option.