summaryrefslogtreecommitdiff
path: root/mysql-test/t/not_partition.test
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-08-15 10:47:18 +0200
committerSergei Golubchik <sergii@pisem.net>2013-08-15 10:47:18 +0200
commit3462b6d3d29eebc246dbf8942baffd0ae5dd0b4f (patch)
tree4e9b2f4f4e54c72c57f140d7377f9a7b7647beff /mysql-test/t/not_partition.test
parent18fc51f5a48191e0424a160f35c29764236b2047 (diff)
downloadmariadb-git-3462b6d3d29eebc246dbf8942baffd0ae5dd0b4f.tar.gz
fix tests that were relying on @@have_partitioning
sql/sql_partition_admin.cc: compilation failures w/o partitioning
Diffstat (limited to 'mysql-test/t/not_partition.test')
-rw-r--r--mysql-test/t/not_partition.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysql-test/t/not_partition.test b/mysql-test/t/not_partition.test
index b930214e008..a4faa794e3d 100644
--- a/mysql-test/t/not_partition.test
+++ b/mysql-test/t/not_partition.test
@@ -2,10 +2,10 @@
# Run this test only when mysqld doesn't have partitioning (not compiled with)
# the statements are not expected to work, just check that we
# can't crash the server
--- require r/not_partition.require
-disable_query_log;
-show variables like "have_partitioning";
-enable_query_log;
+if (`SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'partition'`)
+{
+ --skip Test requires no partitioning
+}
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings