Add failing test case for SELECT FUNC().

This commit is contained in:
Daniel Nichter
2012-10-17 11:54:28 -06:00
parent 252de18574
commit d8cc620c5f
4 changed files with 21 additions and 0 deletions

View File

@@ -187,6 +187,21 @@ SKIP: {
); );
} }
# #############################################################################
# SELECT FUNC(), so there are no tables.
# https://bugs.launchpad.net/percona-toolkit/+bug/1060774
# #############################################################################
$sb->load_file('master', "$sample/004/tables.sql");
$sb->load_file('master1', "$sample/004/tables.sql");
ok(
no_diff(
sub { pt_upgrade::main(@args, "$log/004/select-func.log") },
"$sample/004/select-func.txt",
),
'SELECT FUNC() (bug 1060774)'
);
# ############################################################################# # #############################################################################
# Done. # Done.
# ############################################################################# # #############################################################################

View File

@@ -0,0 +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;

View File

View File

@@ -0,0 +1,2 @@
DROP DATABASE IF EXISTS test;
CREATE DATABASE test;