diff --git a/t/pt-upgrade/basics.t b/t/pt-upgrade/basics.t index 0061521c..68a5dc97 100644 --- a/t/pt-upgrade/basics.t +++ b/t/pt-upgrade/basics.t @@ -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. # ############################################################################# diff --git a/t/pt-upgrade/samples/004/select-func.log b/t/pt-upgrade/samples/004/select-func.log new file mode 100644 index 00000000..b74681cd --- /dev/null +++ b/t/pt-upgrade/samples/004/select-func.log @@ -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; diff --git a/t/pt-upgrade/samples/004/select-func.txt b/t/pt-upgrade/samples/004/select-func.txt new file mode 100644 index 00000000..e69de29b diff --git a/t/pt-upgrade/samples/004/tables.sql b/t/pt-upgrade/samples/004/tables.sql new file mode 100644 index 00000000..a6306518 --- /dev/null +++ b/t/pt-upgrade/samples/004/tables.sql @@ -0,0 +1,2 @@ +DROP DATABASE IF EXISTS test; +CREATE DATABASE test;