summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Stepanova <elenst@montyprogram.com>2017-11-01 19:57:47 +0200
committerElena Stepanova <elenst@montyprogram.com>2017-11-05 20:33:44 +0200
commit0ed5c09b28163726977ffc1754decda200b2beff (patch)
treee552e5ea3cd2617549cd968311c3fd739d0efcc1
parent1394ea696565bdf67ba2a9ef8caca79a22f5787e (diff)
downloadmariadb-git-0ed5c09b28163726977ffc1754decda200b2beff.tar.gz
MDEV-11864 main.view test uses CHECK PARTITION but does not check for the partition plugin
The test would pass even with skipped partitioning, because CHECK PARTITION for a view works identically with enabled/disabled partitioning; but if the server is compiled without partitioning at all, it cannot execute the statement, and the test would fail. Check for the presence of partitioning allows to skip the test in this case, rather than let it fail
-rw-r--r--mysql-test/t/view.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test
index cbccbb5d656..1d199c3bac5 100644
--- a/mysql-test/t/view.test
+++ b/mysql-test/t/view.test
@@ -1,3 +1,4 @@
+--source include/have_partition.inc
--disable_warnings
drop table if exists t1,t2,t3,t4,t5,t6,t9,`t1a``b`,v1,v2,v3,v4,v5,v6;