summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_error.test
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-10-02 00:12:27 +0400
committerAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-10-02 00:12:27 +0400
commit49e715258ffd55e740f9060f68a49960f83b06ea (patch)
tree2118d6c50022f3510872d297e53f610abd13855f /mysql-test/t/partition_error.test
parent16076e6a6f13fe43a8f55100aa7f1a2fff44ff30 (diff)
parente1e838169a83acf352b43981a500684a68bec91a (diff)
downloadmariadb-git-49e715258ffd55e740f9060f68a49960f83b06ea.tar.gz
Manual merge from mysql-5.1-bugteam into mysql-5.5-bugteam.
conflicts: conflict dbug/dbug.c conflict sql/sql_load.cc
Diffstat (limited to 'mysql-test/t/partition_error.test')
-rw-r--r--mysql-test/t/partition_error.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/partition_error.test b/mysql-test/t/partition_error.test
index 73afa9b5216..213778764b5 100644
--- a/mysql-test/t/partition_error.test
+++ b/mysql-test/t/partition_error.test
@@ -1381,4 +1381,18 @@ PARTITION pmax VALUES LESS THAN MAXVALUE);
DROP TABLE old;
+--echo #
+--echo # Bug #56709: Memory leaks at running the 5.1 test suite
+--echo #
+
+CREATE TABLE t1 (a TIMESTAMP NOT NULL PRIMARY KEY);
+
+--error ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR
+ALTER TABLE t1
+PARTITION BY RANGE (EXTRACT(DAY FROM a)) (
+PARTITION p VALUES LESS THAN (18),
+PARTITION pmax VALUES LESS THAN MAXVALUE);
+
+DROP TABLE t1;
+
--echo End of 5.1 tests