| 1 |
select * from INFORMATION_SCHEMA.ENGINES where ENGINE="ARIA"; |
| 2 |
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS |
| 3 |
Aria YES Crash-safe tables with MyISAM heritage. Used for internal temporary tables and privilege tables NO NO NO |
| 4 |
set global default_storage_engine=aria; |
| 5 |
set session default_storage_engine=aria; |
| 6 |
drop table if exists t1; |
| 7 |
SET SQL_WARNINGS=1; |
| 8 |
CREATE TABLE t1 ( a VARCHAR(800),KEY(a) ) |
| 9 |
ENGINE=Aria DEFAULT CHARACTER SET latin1; |
| 10 |
INSERT INTO t1 VALUES |
| 11 |
(REPEAT('abc ',200)), (REPEAT('def ',200)), |
| 12 |
(REPEAT('ghi ',200)), (REPEAT('jkl ',200)); |
| 13 |
INSERT INTO t1 SELECT * FROM t1; |
| 14 |
CHECK TABLE t1; |
| 15 |
Table Op Msg_type Msg_text |
| 16 |
test.t1 check status OK |
| 17 |
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR |
| 18 |
ALTER TABLE t1 MODIFY a VARCHAR(800) CHARSET `ucs2`; |
| 19 |
CHECK TABLE t1; |
| 20 |
Table Op Msg_type Msg_text |
| 21 |
test.t1 check status OK |
| 22 |
SHOW CREATE table t1; |
| 23 |
Table Create Table |
| 24 |
t1 CREATE TABLE `t1` ( |
| 25 |
`a` varchar(800) CHARACTER SET ucs2 COLLATE ucs2_uca1400_ai_ci DEFAULT NULL, |
| 26 |
KEY `a` (`a`) |
| 27 |
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1 |
| 28 |
DROP TABLE t1; |
| 29 |
CREATE TABLE t1 (a VARCHAR(1200),KEY(a)) ENGINE=Aria CHARACTER SET ucs2; |
| 30 |
Warnings: |
| 31 |
Note 1071 Specified key was too long; max key length is 2300 bytes |
| 32 |
INSERT INTO t1 VALUES (REPEAT('abc ',200)); |
| 33 |
CHECK TABLE t1; |
| 34 |
Table Op Msg_type Msg_text |
| 35 |
test.t1 check status OK |
| 36 |
DROP TABLE t1; |
| 37 |
# End of 5.2 tests |