diff options
author | monty@mysql.com <> | 2004-04-28 03:37:45 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-04-28 03:37:45 +0300 |
commit | edc584accec0be3f99f686d1b157d5ec12428f1e (patch) | |
tree | 2b509e76781756629036bcda0b2d4095f6d393d6 /mysql-test | |
parent | 93797a0dffc42f812e55ab089847b804ee8c7204 (diff) | |
download | mariadb-git-edc584accec0be3f99f686d1b157d5ec12428f1e.tar.gz |
Fixed stack overrun with some INSERT ... SELECT ... GROUP BY queries (Bug #3265)
Ensure that raid_chunks is not set to higher than 255 as this could cause problems with DROP DATABASE. (Bug #3182)
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/raid.result | 8 | ||||
-rw-r--r-- | mysql-test/t/raid.test | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/raid.result b/mysql-test/r/raid.result index 3d27a599cf3..408e3b5480f 100644 --- a/mysql-test/r/raid.result +++ b/mysql-test/r/raid.result @@ -2,6 +2,14 @@ create database test_raid; create table test_raid.r1 (i int) raid_type=1; create table test_raid.r2 (i int) raid_type=1 raid_chunks=32; drop database test_raid; +create database test_raid; +create table test_raid.r2 (i int) raid_type=1 raid_chunks=257; +show create table test_raid.r2; +Table Create Table +r2 CREATE TABLE `r2` ( + `i` int(11) default NULL +) TYPE=MyISAM RAID_TYPE=striped RAID_CHUNKS=255 RAID_CHUNKSIZE=256 +drop database test_raid; DROP TABLE IF EXISTS t1,t2; CREATE TABLE t1 ( id int unsigned not null auto_increment primary key, diff --git a/mysql-test/t/raid.test b/mysql-test/t/raid.test index 43ad58ab368..52a15ec3040 100644 --- a/mysql-test/t/raid.test +++ b/mysql-test/t/raid.test @@ -11,6 +11,15 @@ create database test_raid; create table test_raid.r1 (i int) raid_type=1; create table test_raid.r2 (i int) raid_type=1 raid_chunks=32; drop database test_raid; + +# +# Bug #3182: Test using more than 257 raid chunks +# +create database test_raid; +create table test_raid.r2 (i int) raid_type=1 raid_chunks=257; +show create table test_raid.r2; +drop database test_raid; + DROP TABLE IF EXISTS t1,t2; CREATE TABLE t1 ( id int unsigned not null auto_increment primary key, |