2012-03-09 13:06:17 +01:00
|
|
|
select * from INFORMATION_SCHEMA.ENGINES where ENGINE="ARIA";
|
|
|
|
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
|
2018-08-02 16:59:11 +02:00
|
|
|
Aria YES Crash-safe tables with MyISAM heritage. Used for internal temporary tables and privilege tables NO NO NO
|
2020-01-13 20:07:04 +01:00
|
|
|
set global default_storage_engine=aria;
|
|
|
|
set session default_storage_engine=aria;
|
2012-03-09 13:06:17 +01:00
|
|
|
drop table if exists t1;
|
|
|
|
SET SQL_WARNINGS=1;
|
|
|
|
CREATE TABLE t1 ( a VARCHAR(800),KEY(a) )
|
|
|
|
ENGINE=Aria DEFAULT CHARACTER SET latin1;
|
|
|
|
INSERT INTO t1 VALUES
|
|
|
|
(REPEAT('abc ',200)), (REPEAT('def ',200)),
|
|
|
|
(REPEAT('ghi ',200)), (REPEAT('jkl ',200));
|
|
|
|
INSERT INTO t1 SELECT * FROM t1;
|
|
|
|
CHECK TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
|
|
|
test.t1 check status OK
|
2017-02-08 21:28:00 +01:00
|
|
|
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
2012-03-09 13:06:17 +01:00
|
|
|
ALTER TABLE t1 MODIFY a VARCHAR(800) CHARSET `ucs2`;
|
|
|
|
CHECK TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
|
|
|
test.t1 check status OK
|
|
|
|
SHOW CREATE table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
2023-11-02 11:16:09 +01:00
|
|
|
`a` varchar(800) CHARACTER SET ucs2 COLLATE ucs2_uca1400_ai_ci DEFAULT NULL,
|
2019-08-08 22:04:05 +02:00
|
|
|
KEY `a` (`a`)
|
2022-09-02 15:32:14 +02:00
|
|
|
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
2012-03-09 13:28:02 +01:00
|
|
|
DROP TABLE t1;
|
2019-08-08 22:04:05 +02:00
|
|
|
CREATE TABLE t1 (a VARCHAR(1200),KEY(a)) ENGINE=Aria CHARACTER SET ucs2;
|
2012-03-09 13:28:02 +01:00
|
|
|
Warnings:
|
2020-11-18 16:04:57 +01:00
|
|
|
Note 1071 Specified key was too long; max key length is 2300 bytes
|
2012-03-09 13:28:02 +01:00
|
|
|
INSERT INTO t1 VALUES (REPEAT('abc ',200));
|
|
|
|
CHECK TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
|
|
|
test.t1 check status OK
|
2012-03-09 13:06:17 +01:00
|
|
|
DROP TABLE t1;
|
|
|
|
# End of 5.2 tests
|