Tweak tests to recreate the original problem.

This commit is contained in:
Daniel Nichter
2012-10-17 12:19:55 -06:00
parent d8cc620c5f
commit 117e78a3c9
2 changed files with 4 additions and 2 deletions

View File

@@ -196,7 +196,9 @@ $sb->load_file('master1', "$sample/004/tables.sql");
ok(
no_diff(
sub { pt_upgrade::main(@args, "$log/004/select-func.log") },
sub { pt_upgrade::main(@args,
qw(--compare-results-method rows),
"$log/004/select-func.log") },
"$sample/004/select-func.txt",
),
'SELECT FUNC() (bug 1060774)'

View File

@@ -1,4 +1,4 @@
# User@Host: root[root] @ localhost []
# Query_time: 1 Lock_time: 0 Rows_sent: 1 Rows_examined: 1
use test;
SELECT (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP('2012-09-16 10:16:36')) / 60;
SELECT (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP('2012-09-16 10:16:36')) / 60, SLEEP(1);