diff options
author | unknown <mikael@zim.(none)> | 2006-03-13 09:09:25 -0800 |
---|---|---|
committer | unknown <mikael@zim.(none)> | 2006-03-13 09:09:25 -0800 |
commit | c472bdbafa3a2624ea8c92fa97810480a206b8a9 (patch) | |
tree | 15c3a061dbc43c3967f74efbc94c57034f9a08cb /mysql-test/t/ndb_partition_key.test | |
parent | aa451a0e07254dfd1f7e1229018d05fc895e312d (diff) | |
download | mariadb-git-c472bdbafa3a2624ea8c92fa97810480a206b8a9.tar.gz |
BUG #16810: Error on coalesce partition
New test case (bug was already fixed)
mysql-test/r/ndb_partition_key.result:
New test case
mysql-test/t/ndb_partition_key.test:
New test case
Diffstat (limited to 'mysql-test/t/ndb_partition_key.test')
-rw-r--r-- | mysql-test/t/ndb_partition_key.test | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_partition_key.test b/mysql-test/t/ndb_partition_key.test index 7f6120fe094..22c84bf132e 100644 --- a/mysql-test/t/ndb_partition_key.test +++ b/mysql-test/t/ndb_partition_key.test @@ -79,3 +79,32 @@ PARTITION BY KEY(a) (PARTITION p0 ENGINE = NDB, PARTITION p1 ENGINE = NDB); drop table t1; + +# +# BUG 16810 Out of memory when coalesce partition +# +CREATE TABLE t1 ( + c1 MEDIUMINT NOT NULL AUTO_INCREMENT, + c2 TEXT NOT NULL, + c3 INT NOT NULL, + c4 BIT NOT NULL, + c5 FLOAT, + c6 VARCHAR(255), + c7 TIMESTAMP, + PRIMARY KEY(c1,c3)) + ENGINE=NDB + PARTITION BY KEY(c3) PARTITIONS 5; + +let $j= 11; +--disable_query_log +while ($j) +{ + eval INSERT INTO t1 VALUES (NULL, "Tested Remotely from Texas, USA", $j, +b'0', + $j.00,"By JBM $j","2006-01-26"); + dec $j; +} +--enable_query_log +ALTER TABLE t1 COALESCE PARTITION 4; + +DROP TABLE t1; |