Skip to content

Commit cd6183d

Browse files
Merge pull request #1014 from percona/PT-2346_t/pt-table-sync/specify_column_or_index.t_fails_with_5.7
PT-2346 - t/pt-table-sync/specify_column_or_index.t fails with 5.7
2 parents 2ac8385 + fef0254 commit cd6183d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/pt-table-sync/specify_column_or_index.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ $output = `$trunk/bin/pt-table-sync --sync-to-source h=127.1,P=12346,u=msandbox,
4444
# and EXPLAIN does not guarantee accuracy of results.
4545
like(
4646
$output,
47-
qr/FROM `issue_375`.`t` FORCE INDEX \(`updated_at`\) WHERE \(`updated_at` > 0 AND `updated_at` < '2009-09-05 02:\d\d:\d\d'/,
47+
qr/FROM `issue_375`.`t` FORCE INDEX \(`updated_at`\) WHERE \(`updated_at` > 0 AND `updated_at` < '2009-09-05 \d\d:\d\d:\d\d'/,
4848
'--chunk-index',
49-
);
49+
) or diag($output);
5050

5151
$output = `$trunk/bin/pt-table-sync --sync-to-source h=127.1,P=12346,u=msandbox,p=msandbox -d issue_375 --print -v -v --chunk-size 50 --chunk-column updated_at`;
5252
like(
5353
$output,
54-
qr/FROM `issue_375`.`t` FORCE INDEX \(`updated_at`\) WHERE \(`updated_at` > 0 AND `updated_at` < '2009-09-05 02:\d\d:\d\d'/,
54+
qr/FROM `issue_375`.`t` FORCE INDEX \(`updated_at`\) WHERE \(`updated_at` > 0 AND `updated_at` < '2009-09-05 \d\d:\d\d:\d\d'/,
5555
'--chunk-column',
56-
);
56+
) or diag($output);
5757

5858
# #############################################################################
5959
# Done.

0 commit comments

Comments
 (0)