mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-15 16:00:23 +00:00
Add failing test case for SELECT FUNC().
This commit is contained in:
@@ -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.
|
||||
# #############################################################################
|
||||
|
4
t/pt-upgrade/samples/004/select-func.log
Normal file
4
t/pt-upgrade/samples/004/select-func.log
Normal 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;
|
0
t/pt-upgrade/samples/004/select-func.txt
Normal file
0
t/pt-upgrade/samples/004/select-func.txt
Normal file
2
t/pt-upgrade/samples/004/tables.sql
Normal file
2
t/pt-upgrade/samples/004/tables.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DROP DATABASE IF EXISTS test;
|
||||
CREATE DATABASE test;
|
Reference in New Issue
Block a user