Commit 028523e9 authored by Michael Widenius's avatar Michael Widenius

Added test case for lp:905782 "Assertion `pageno < ((1ULL) << 40)' failed at...

Added test case for lp:905782 "Assertion `pageno < ((1ULL) << 40)' failed at ma_pagecache.c:3438: pagecache_read or table corruption on INSERT into a ucs2 table"
The orignal bug has been fixed earlier
parent ea736c93
...@@ -3,8 +3,6 @@ ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS ...@@ -3,8 +3,6 @@ ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
Aria YES Crash-safe tables with MyISAM heritage NO NO NO Aria YES Crash-safe tables with MyISAM heritage NO NO NO
set global storage_engine=aria; set global storage_engine=aria;
set session storage_engine=aria; set session storage_engine=aria;
set global aria_page_checksum=0;
set global aria_log_file_size=4294967295;
drop table if exists t1; drop table if exists t1;
SET SQL_WARNINGS=1; SET SQL_WARNINGS=1;
CREATE TABLE t1 ( a VARCHAR(800),KEY(a) ) CREATE TABLE t1 ( a VARCHAR(800),KEY(a) )
...@@ -28,6 +26,14 @@ Table Create Table ...@@ -28,6 +26,14 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` varchar(800) CHARACTER SET ucs2 DEFAULT NULL, `a` varchar(800) CHARACTER SET ucs2 DEFAULT NULL,
KEY `a` (`a`(500)) KEY `a` (`a`(500))
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=0 ) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
DROP TABLE t1;
CREATE TABLE t1 (a VARCHAR(800),KEY(a)) ENGINE=Aria CHARACTER SET ucs2;
Warnings:
Warning 1071 Specified key was too long; max key length is 1000 bytes
INSERT INTO t1 VALUES (REPEAT('abc ',200));
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check status OK
DROP TABLE t1; DROP TABLE t1;
# End of 5.2 tests # End of 5.2 tests
...@@ -4,12 +4,8 @@ ...@@ -4,12 +4,8 @@
select * from INFORMATION_SCHEMA.ENGINES where ENGINE="ARIA"; select * from INFORMATION_SCHEMA.ENGINES where ENGINE="ARIA";
let $default_engine=`select @@global.storage_engine`; let $default_engine=`select @@global.storage_engine`;
let $default_checksum=`select @@global.aria_page_checksum`;
set global storage_engine=aria; set global storage_engine=aria;
set session storage_engine=aria; set session storage_engine=aria;
set global aria_page_checksum=0;
let $default_log_file_size=`select @@global.aria_log_file_size`;
set global aria_log_file_size=4294967295;
# Initialise # Initialise
--disable_warnings --disable_warnings
...@@ -35,13 +31,21 @@ CHECK TABLE t1; ...@@ -35,13 +31,21 @@ CHECK TABLE t1;
SHOW CREATE table t1; SHOW CREATE table t1;
DROP TABLE t1; DROP TABLE t1;
#
# BUG#905782 Assertion `pageno < ((1ULL) << 40)' failed at ma_pagecache.c
# Issue was too long key
#
CREATE TABLE t1 (a VARCHAR(800),KEY(a)) ENGINE=Aria CHARACTER SET ucs2;
INSERT INTO t1 VALUES (REPEAT('abc ',200));
CHECK TABLE t1;
DROP TABLE t1;
--echo # End of 5.2 tests --echo # End of 5.2 tests
--disable_result_log --disable_result_log
--disable_query_log --disable_query_log
eval set global storage_engine=$default_engine, eval set global storage_engine=$default_engine;
aria_page_checksum=$default_checksum,
aria_log_file_size=$default_log_file_size;
--enable_result_log --enable_result_log
--enable_query_log --enable_query_log
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment