mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-05-08 03:06:21 +08:00
PR-1057 - Fix field misalignment in pt-archiver when using --bulk-insert with special characters
- Adjusted tests t/pt-archiver/file.t and t/pt-archiver/pt-2207.t
This commit is contained in:
@@ -44,8 +44,8 @@ $output = `cat archive.test.table_1`;
|
||||
is($output, <<EOF
|
||||
1\t2\t3\t4
|
||||
2\t\\N\t3\t4
|
||||
3\t2\t3\t\\\t
|
||||
4\t2\t3\t\\
|
||||
3\t2\t3\t\\t
|
||||
4\t2\t3\t\\n
|
||||
EOF
|
||||
, 'File has the right stuff');
|
||||
`rm -f archive.test.table_1`;
|
||||
@@ -125,8 +125,8 @@ $output = `cat archive.test.table_2`;
|
||||
is($output, <<EOF
|
||||
1,2,3,4
|
||||
2,\\N,3,4
|
||||
3,2,3,"\\\t"
|
||||
4,2,3,"\\\n"
|
||||
3,2,3,"\\t"
|
||||
4,2,3,"\\n"
|
||||
5,2,3,"Zapp \\"Brannigan"
|
||||
EOF
|
||||
, '--output-format=csv');
|
||||
|
||||
@@ -51,8 +51,8 @@ $output = `cat archive.test.table_1`;
|
||||
is($output, <<EOF
|
||||
1\t2\t3\t4
|
||||
2\t\\N\t3\t4
|
||||
3\t2\t3\t\\\t
|
||||
4\t2\t3\t\\
|
||||
3\t2\t3\t\\t
|
||||
4\t2\t3\t\\n
|
||||
EOF
|
||||
, 'File has the right stuff');
|
||||
`rm -f archive.test.table_1`;
|
||||
|
||||
Reference in New Issue
Block a user