| 1 |
-- source include/have_maria.inc |
| 2 |
-- source include/have_ucs2.inc |
| 3 |
|
| 4 |
select * from INFORMATION_SCHEMA.ENGINES where ENGINE="ARIA"; |
| 5 |
|
| 6 |
let $default_engine=`select @@global.default_storage_engine`; |
| 7 |
set global default_storage_engine=aria; |
| 8 |
set session default_storage_engine=aria; |
| 9 |
|
| 10 |
# Initialise |
| 11 |
--disable_warnings |
| 12 |
drop table if exists t1; |
| 13 |
--enable_warnings |
| 14 |
SET SQL_WARNINGS=1; |
| 15 |
|
| 16 |
# |
| 17 |
# bug#905716: Assertion `page->size <= share->max_index_block_size' |
| 18 |
# |
| 19 |
|
| 20 |
CREATE TABLE t1 ( a VARCHAR(800),KEY(a) ) |
| 21 |
ENGINE=Aria DEFAULT CHARACTER SET latin1; |
| 22 |
INSERT INTO t1 VALUES |
| 23 |
(REPEAT('abc ',200)), (REPEAT('def ',200)), |
| 24 |
(REPEAT('ghi ',200)), (REPEAT('jkl ',200)); |
| 25 |
INSERT INTO t1 SELECT * FROM t1; |
| 26 |
# check table is not needed to reproduce the problem, |
| 27 |
# but shows that by this time the table appears to be okay. |
| 28 |
CHECK TABLE t1; |
| 29 |
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR |
| 30 |
ALTER TABLE t1 MODIFY a VARCHAR(800) CHARSET `ucs2`; |
| 31 |
CHECK TABLE t1; |
| 32 |
SHOW CREATE table t1; |
| 33 |
DROP TABLE t1; |
| 34 |
|
| 35 |
# |
| 36 |
# BUG#905782 Assertion `pageno < ((1ULL) << 40)' failed at ma_pagecache.c |
| 37 |
# Issue was too long key |
| 38 |
# |
| 39 |
|
| 40 |
CREATE TABLE t1 (a VARCHAR(1200),KEY(a)) ENGINE=Aria CHARACTER SET ucs2; |
| 41 |
INSERT INTO t1 VALUES (REPEAT('abc ',200)); |
| 42 |
CHECK TABLE t1; |
| 43 |
DROP TABLE t1; |
| 44 |
|
| 45 |
--echo # End of 5.2 tests |
| 46 |
|
| 47 |
|
| 48 |
--disable_result_log |
| 49 |
--disable_query_log |
| 50 |
eval set global default_storage_engine=$default_engine; |
| 51 |
--enable_result_log |
| 52 |
--enable_query_log |