You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

585 lines
16 KiB

Fixed some bugs in the Maria storage engine - Changed default recovery mode from OFF to NORMAL to get automatic repair of not properly closed tables. - Fixed a rase condition when two threads calls external_lock and thr_lock() in different order. When this happend the transaction that called external lock first and thr_lock() last did not see see the rows from the other transaction, even if if it had to wait in thr_lock() for other to complete. - Fixed that one can run maria_chk on an automatcally recovered tables without warnings about too small transaction id - Don't give warning that crashed table could not be repaired if repair was disabled (and thus not run) - Fixed a error result from flush_key_cache() which caused a DBUG_ASSERT() when one was using concurrent reads on non transactional tables that was updated. client/mysqldump.c: Add "" around error message to make it more readable client/mysqltest.cc: Free environment variables mysql-test/r/mysqldump.result: Updated results mysql-test/r/openssl_1.result: Updated results mysql-test/suite/maria/r/maria-recover.result: Updated results mysql-test/suite/maria/r/maria3.result: Updated results mysql-test/suite/maria/t/maria3.test: Added more test of temporary tables storage/maria/ha_maria.cc: Changed default recovery mode from OFF to NORMAL to get automatic repair of not properly closed tables. Start transaction in ma_block_get_status() instead of in ha_maria::external_lock(). - This fixes a rase condition when two threads calls external lock and thr_lock() in different order. When this happend the transaction that called external lock first and thr_lock() last did not see see the rows from the other transaction, even if if it had to wait in thr_lock() for other to complete. Store latest transaction id in controll file if recovery was done. - This allows one to run maria_chk on an automatcally recovered tables without warnings about too small transaction id storage/maria/ha_maria.h: Don't give warning that crashed table could not be repaired if repair was disabled (and thus not run) storage/maria/ma_blockrec.h: Added new function "_ma_block_get_status_no_versioning()" storage/maria/ma_init.c: Added hook to create trn in ma_block_get_status() if we are using MariaDB storage/maria/ma_open.c: Ensure we call _ma_block_get_status_no_versioning() for transactional tables without versioning (like tables with fulltext) storage/maria/ma_pagecache.c: Allow one to flush blocks that are pinned for read. This fixed a error result from flush_key_cache() which caused a DBUG_ASSERT() when one was using concurrent reads on non transactional tables that was updated. storage/maria/ma_recovery.c: Set maria_recovery_changed_data to 1 if recover changed something. Set max_trid_in_control_file to max found trn if we found a bigger trn. The allows will ensure that the control file is up to date after recovery which allows one to run maria_chk on the tables without warnings about too big trn storage/maria/ma_state.c: Call maria_create_trn_hook() in _ma_setup_live_state() instead of ha_maria::external_lock() This ensures that 'state' and trn are in sync and thus fixes the race condition mentioned for ha_maria.cc storage/maria/ma_static.c: Added maria_create_trn_hook() and maria_recovery_changed_data storage/maria/maria_def.h: Added MARIA_HANDLER->external_ptr, which is used to hold MariaDB thd. Added some new external variables Removed reference to non existing function: maria_concurrent_inserts()
16 years ago
  1. -- source include/have_maria.inc
  2. select * from INFORMATION_SCHEMA.ENGINES where ENGINE="ARIA";
  3. let $default_engine=`select @@global.storage_engine`;
  4. let $default_checksum=`select @@global.aria_page_checksum`;
  5. set global storage_engine=aria;
  6. set session storage_engine=aria;
  7. set global aria_page_checksum=0;
  8. let $default_log_file_size=`select @@global.aria_log_file_size`;
  9. set global aria_log_file_size=4294967295;
  10. # Initialise
  11. --disable_warnings
  12. drop table if exists t1,t2;
  13. --enable_warnings
  14. SET SQL_WARNINGS=1;
  15. # Test limits and errors of key_block_size
  16. create table t1 (a int not null, key `a` (a) key_block_size=512);
  17. show create table t1;
  18. drop table t1;
  19. create table t1 (a varchar(2048), key `a` (a) key_block_size=1000000000000000000);
  20. show create table t1;
  21. drop table t1;
  22. create table t1 (a int not null, key `a` (a) key_block_size=1025);
  23. show create table t1;
  24. drop table t1;
  25. --error 1064
  26. create table t1 (a int not null, key key_block_size=1024 (a));
  27. --error 1064
  28. create table t1 (a int not null, key `a` key_block_size=1024 (a));
  29. #
  30. # Test of changing MI_KEY_BLOCK_LENGTH
  31. #
  32. CREATE TABLE t1 (
  33. c1 INT,
  34. c2 VARCHAR(300),
  35. KEY (c1) KEY_BLOCK_SIZE 1024,
  36. KEY (c2) KEY_BLOCK_SIZE 8192
  37. );
  38. INSERT INTO t1 VALUES (10, REPEAT('a', CEIL(RAND(10) * 300))),
  39. (11, REPEAT('b', CEIL(RAND() * 300))),
  40. (12, REPEAT('c', CEIL(RAND() * 300))),
  41. (13, REPEAT('d', CEIL(RAND() * 300))),
  42. (14, REPEAT('e', CEIL(RAND() * 300))),
  43. (15, REPEAT('f', CEIL(RAND() * 300))),
  44. (16, REPEAT('g', CEIL(RAND() * 300))),
  45. (17, REPEAT('h', CEIL(RAND() * 300))),
  46. (18, REPEAT('i', CEIL(RAND() * 300))),
  47. (19, REPEAT('j', CEIL(RAND() * 300))),
  48. (20, REPEAT('k', CEIL(RAND() * 300))),
  49. (21, REPEAT('l', CEIL(RAND() * 300))),
  50. (22, REPEAT('m', CEIL(RAND() * 300))),
  51. (23, REPEAT('n', CEIL(RAND() * 300))),
  52. (24, REPEAT('o', CEIL(RAND() * 300))),
  53. (25, REPEAT('p', CEIL(RAND() * 300))),
  54. (26, REPEAT('q', CEIL(RAND() * 300))),
  55. (27, REPEAT('r', CEIL(RAND() * 300))),
  56. (28, REPEAT('s', CEIL(RAND() * 300))),
  57. (29, REPEAT('t', CEIL(RAND() * 300))),
  58. (30, REPEAT('u', CEIL(RAND() * 300))),
  59. (31, REPEAT('v', CEIL(RAND() * 300))),
  60. (32, REPEAT('w', CEIL(RAND() * 300))),
  61. (33, REPEAT('x', CEIL(RAND() * 300))),
  62. (34, REPEAT('y', CEIL(RAND() * 300))),
  63. (35, REPEAT('z', CEIL(RAND() * 300)));
  64. INSERT INTO t1 SELECT * FROM t1;
  65. INSERT INTO t1 SELECT * FROM t1;
  66. CHECK TABLE t1;
  67. REPAIR TABLE t1;
  68. DELETE FROM t1 WHERE c1 >= 10;
  69. CHECK TABLE t1;
  70. DROP TABLE t1;
  71. #
  72. # Test that TRANSACTIONAL is preserved
  73. #
  74. create table t1 (a int) transactional=0;
  75. show create table t1;
  76. drop table t1;
  77. create table t1 (a int) row_format=dynamic transactional=0;
  78. show create table t1;
  79. drop table t1;
  80. create table t1 (a int) row_format=dynamic transactional=1;
  81. show create table t1;
  82. alter table t1 row_format=PAGE;
  83. show create table t1;
  84. alter table t1 row_format=DYNAMIC;
  85. show create table t1;
  86. alter table t1 transactional=0;
  87. show create table t1;
  88. alter table t1 row_format=DYNAMIC;
  89. show create table t1;
  90. drop table t1;
  91. create table t1 (a int) row_format=PAGE;
  92. show create table t1;
  93. drop table t1;
  94. create table t1 (a int) row_format=PAGE TRANSACTIONAL=DEFAULT;
  95. show create table t1;
  96. alter table t1 row_format=DYNAMIC;
  97. show create table t1;
  98. drop table t1;
  99. #
  100. # MySQL Bug#39200: optimize table does not recognize ROW_FORMAT=COMPRESSED
  101. #
  102. create table t1 (a int) transactional=0 row_format=FIXED;
  103. show create table t1;
  104. alter table t1 transactional=1;
  105. show create table t1;
  106. alter table t1 transactional=0;
  107. show create table t1;
  108. drop table t1;
  109. #
  110. # MySQL Bug#39200: optimize table does not recognize ROW_FORMAT=COMPRESSED
  111. #
  112. create table t1 (a int) transactional=0 row_format=FIXED;
  113. show create table t1;
  114. alter table t1 transactional=1;
  115. show create table t1;
  116. alter table t1 transactional=0;
  117. show create table t1;
  118. drop table t1;
  119. # CHECK TABLE was reporting
  120. # "Size of datafile is: 0 Should be: 16384"
  121. #
  122. create table `t1` (
  123. t1_name varchar(255) default null,
  124. t1_id int(10) unsigned not null auto_increment,
  125. key (t1_name),
  126. primary key (t1_id)
  127. ) engine=aria auto_increment = 1000 default charset=latin1;
  128. lock tables t1 write;
  129. INSERT INTO `t1` VALUES ('bla',1000),('bla',1001),('bla',1002);
  130. check table t1;
  131. unlock tables;
  132. #
  133. # Check that an empty table uses fast recreate of index when we fill it
  134. # with insert ... select.
  135. create table t2 like t1;
  136. insert into t2 select * from t1;
  137. # This should say that the table is already up to date
  138. analyze table t2;
  139. delete from t2;
  140. insert into t2 select * from t1;
  141. analyze table t2;
  142. drop table t1,t2;
  143. #
  144. # Test when expanding a row so that it doesn't fit into the same page
  145. #
  146. create table t1 (a bigint auto_increment, primary key(a), b char(255), c varchar(20000));
  147. let $1=1000;
  148. --disable_query_log
  149. --disable_warnings
  150. lock tables t1 write;
  151. while ($1)
  152. {
  153. insert into t1 () values();
  154. dec $1;
  155. }
  156. unlock tables;
  157. --enable_query_log
  158. update t1 set b=repeat('a',100) where a between 1 and 100;
  159. check table t1;
  160. update t1 set c=repeat('a',8192*2) where a between 200 and 202;
  161. check table t1;
  162. drop table t1;
  163. #
  164. # Test where we shrink varchar
  165. #
  166. CREATE TABLE t1 (a int, b int, v varchar(60000)) checksum=1 engine=aria;
  167. insert into t1 values (1,1,"aaa"),(1,2,null);
  168. checksum table t1;
  169. lock table t1 write;
  170. insert into t1 values (1,3,repeat('c',30000)),(4,4,repeat('a',30000));
  171. update t1 set v="row5" where b=4;
  172. delete from t1 where b=3;
  173. select a, b, length(v) from t1;
  174. drop table t1;
  175. #
  176. # Test tail pages for blobs
  177. #
  178. CREATE TABLE t1 (
  179. auto int(5) unsigned NOT NULL auto_increment,
  180. string char(10) default "hello",
  181. tiny tinyint(4) DEFAULT '0' NOT NULL ,
  182. short smallint(6) DEFAULT '1' NOT NULL ,
  183. medium mediumint(8) DEFAULT '0' NOT NULL,
  184. long_int int(11) DEFAULT '0' NOT NULL,
  185. longlong bigint(13) DEFAULT '0' NOT NULL,
  186. real_float float(13,1) DEFAULT 0.0 NOT NULL,
  187. real_double double(16,4),
  188. utiny tinyint(3) unsigned DEFAULT '0' NOT NULL,
  189. ushort smallint(5) unsigned zerofill DEFAULT '00000' NOT NULL,
  190. umedium mediumint(8) unsigned DEFAULT '0' NOT NULL,
  191. ulong int(11) unsigned DEFAULT '0' NOT NULL,
  192. ulonglong bigint(13) unsigned DEFAULT '0' NOT NULL,
  193. time_stamp timestamp,
  194. date_field date,
  195. time_field time,
  196. date_time datetime,
  197. blob_col blob,
  198. tinyblob_col tinyblob,
  199. mediumblob_col mediumblob not null default '',
  200. longblob_col longblob not null default '',
  201. options enum('one','two','tree') not null ,
  202. flags set('one','two','tree') not null default '',
  203. PRIMARY KEY (auto),
  204. KEY (utiny),
  205. KEY (tiny),
  206. KEY (short),
  207. KEY any_name (medium),
  208. KEY (longlong),
  209. KEY (real_float),
  210. KEY (ushort),
  211. KEY (umedium),
  212. KEY (ulong),
  213. KEY (ulonglong,ulong),
  214. KEY (options,flags)
  215. ) engine=aria;
  216. insert into t1 values (10,1,1,1,1,1,1,1,1,1,1,1,1,1,NULL,0,0,0,1,1,1,1,'one','one');
  217. create table t2 (primary key (auto)) engine=aria row_format=page select auto+1 as auto,1 as t1, 'a' as t2, repeat('a',256) as t3, binary repeat('b',256) as t4, repeat('a',4096) as t5, binary repeat('b',4096) as t6, '' as t7, binary '' as t8 from t1;
  218. check table t1,t2;
  219. select t1,t2,length(t3),length(t4),length(t5),length(t6),t7,t8 from t2;
  220. drop table t2;
  221. create table t2 (primary key (auto)) engine=aria row_format=dynamic select auto+1 as auto,1 as t1, 'a' as t2, repeat('a',256) as t3, binary repeat('b',256) as t4, repeat('a',4096) as t5, binary repeat('b',4096) as t6, '' as t7, binary '' as t8 from t1;
  222. check table t2;
  223. drop table t1,t2;
  224. # Test UPDATE with small BLOB which fits on head page
  225. CREATE TABLE t1 (seq int, s1 int, s2 blob);
  226. insert into t1 values (1, 1, MD5(1));
  227. update t1 set s1=2 where seq=1;
  228. check table t1 extended;
  229. drop table t1;
  230. # Fix if we are using safemalloc
  231. --replace_result 8388572 8388600
  232. select lower(variable_name) as Variable_name, Variable_value as Value from information_schema.session_variables where variable_name like "aria%" and variable_name not like "aria_used_for_temp_tables" order by 1;
  233. --replace_column 2 #
  234. show status like 'aria%';
  235. #
  236. # Test creating table with no field data and index on zero length columns
  237. #
  238. create table t1 (b char(0));
  239. insert into t1 values(NULL),("");
  240. select length(b) from t1;
  241. alter table t1 add column c char(0), add key (c);
  242. insert into t1 values("",""),("",NULL);
  243. select length(b),length(c) from t1;
  244. select length(b),length(c) from t1 where c is null;
  245. select length(b),length(c) from t1 where c is not null;
  246. select length(b),length(c) from t1 order by c;
  247. --error 1167
  248. alter table t1 add column d char(0) not null, add key (d);
  249. drop table t1;
  250. CREATE TABLE t1 (a bit(3));
  251. insert into t1 values (NULL),(0),(1),(2),(3),(4),(5),(6),(7);
  252. select hex(a) from t1;
  253. drop table t1;
  254. create table t1(a bit not null);
  255. insert into t1 values(0),(1);
  256. select a+0 from t1;
  257. drop table t1;
  258. #
  259. # Test of min_key_length
  260. #
  261. CREATE TABLE t1 (col1 int, s1 char(16) DEFAULT NULL, s2 char(16) DEFAULT NULL, KEY (s1,s2));
  262. insert into t1 (col1) values(0);
  263. drop table t1;
  264. #
  265. # Show that page_checksum is remembered
  266. #
  267. set global aria_page_checksum=1;
  268. create table t1 (a int);
  269. show create table t1;
  270. drop table t1;
  271. #
  272. # Test warning on log file size truncates
  273. #
  274. --enable_warnings
  275. set global aria_log_file_size=4294967296;
  276. #
  277. # Test delete of all rows in autocommit and not autocommit
  278. #
  279. create table t1 (a int not null);
  280. lock tables t1 write;
  281. insert into t1 values (1),(2);
  282. delete from t1;
  283. unlock tables;
  284. select * from t1;
  285. insert into t1 values (1),(2);
  286. delete from t1;
  287. select * from t1;
  288. drop table t1;
  289. # Test for bug "ha_enable_transaction(on) not called by CREATE TABLE"
  290. # (originally from type_ranges.test)
  291. create table t1 (c int);
  292. insert into t1 values(1),(2);
  293. create table t2 select * from t1;
  294. --error 1060
  295. create table t3 select * from t1, t2; # Should give an error
  296. create table t3 select t1.c AS c1, t2.c AS c2,1 as "const" from t1, t2;
  297. drop table t1, t2, t3;
  298. # Test for bug "aria_repair() (OPTIMIZE) leaves wrong
  299. # data_file_length" (originally from type_datetime.test)
  300. create table t1 (t datetime) engine=aria;
  301. insert into t1 values (101),(691231),(700101),(991231),(10000101),(99991231),(101000000),(691231000000),(700101000000),(991231235959),(10000101000000),(99991231235959),(20030100000000),(20030000000000);
  302. select * from t1;
  303. optimize table t1;
  304. check table t1;
  305. delete from t1 where t > 0;
  306. optimize table t1;
  307. check table t1;
  308. drop table t1;
  309. #
  310. # Test auto-increment
  311. #
  312. SET SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
  313. CREATE TABLE t1 (id int(11) PRIMARY KEY auto_increment,f1 varchar(10) NOT NULL UNIQUE);
  314. INSERT IGNORE INTO t1 (f1) VALUES ("test1");
  315. INSERT IGNORE INTO t1 (f1) VALUES ("test1");
  316. INSERT IGNORE INTO t1 (f1) VALUES ("test2");
  317. SELECT * FROM t1;
  318. drop table t1;
  319. SET SQL_MODE = 'TRADITIONAL';
  320. create table t1 (n int not null primary key auto_increment, c char(1), unique(c));
  321. insert into t1 values(100, "a");
  322. insert into t1 values(300, "b");
  323. --error 1062
  324. insert into t1 values(50, "a");
  325. insert into t1 values(null, "c");
  326. select * from t1;
  327. --error 1062
  328. update t1 set n=400,c='a' where n=301;
  329. insert into t1 values(null, "d");
  330. select * from t1;
  331. drop table t1;
  332. create table t1 (n int not null primary key auto_increment, c char(1), unique(c)) transactional=0 row_format=dynamic;
  333. insert into t1 values(100, "a");
  334. insert into t1 values(300, "b");
  335. --error 1062
  336. insert into t1 values(50, "a");
  337. insert into t1 values(null, "c");
  338. select * from t1;
  339. --error 1062
  340. update t1 set n=400,c='a' where n=301;
  341. insert into t1 values(null, "d");
  342. select * from t1;
  343. drop table t1;
  344. #
  345. # Test warnings with transactional=1 with MyISAM
  346. #
  347. create table t1 (n int not null, c char(1)) engine=aria;
  348. alter table t1 engine=myisam;
  349. alter table t1 engine=aria;
  350. show create table t1;
  351. drop table t1;
  352. create table t1 (n int not null, c char(1)) engine=aria transactional=1;
  353. alter table t1 engine=myisam;
  354. alter table t1 engine=aria;
  355. show create table t1;
  356. drop table t1;
  357. create table t1 (n int not null, c char(1)) engine=myisam transactional=1;
  358. alter table t1 engine=aria;
  359. show create table t1;
  360. drop table t1;
  361. #
  362. # Some tests that have failed with transactional=0
  363. #
  364. # Testing buik insert
  365. create table t1 (a int, key(a)) transactional=0;
  366. insert into t1 values (0),(1),(2),(3),(4);
  367. insert into t1 select NULL from t1;
  368. check table t1;
  369. drop table t1;
  370. #
  371. # Some tests with temporary tables
  372. #
  373. create temporary table t1 (a int, key(a)) transactional=1;
  374. create temporary table t2 (a int, key(a)) transactional=1;
  375. insert into t1 values (0),(1),(2),(3),(4);
  376. insert into t2 select * from t1;
  377. insert into t1 select NULL from t2;
  378. select count(*) from t1;
  379. select count(*) from t1 where a >= 4;
  380. drop table t1, t2;
  381. create temporary table t1 (a int, key(a)) transactional=0 row_format=page;
  382. create temporary table t2 (a int, key(a)) transactional=0 row_format=page;
  383. insert into t1 values (0),(1),(2),(3),(4);
  384. insert into t2 select * from t1;
  385. insert into t1 select NULL from t2;
  386. select count(*) from t1;
  387. select count(*) from t1 where a >= 4;
  388. drop table t1, t2;
  389. create temporary table t1 (a int, key(a)) transactional=0 row_format=fixed;
  390. create temporary table t2 (a int, key(a)) transactional=0 row_format=dynamic;
  391. insert into t1 values (0),(1),(2),(3),(4);
  392. insert into t2 select * from t1;
  393. insert into t1 select NULL from t2;
  394. select count(*) from t1;
  395. select count(*) from t1 where a >= 4;
  396. drop table t1, t2;
  397. #
  398. # Test problems with small rows and row_type=page
  399. # Bug 35048 "aria table corruption reported when transactional=0"
  400. #
  401. create table t1 (i int auto_increment not null primary key) transactional=0;
  402. let $i=510;
  403. --disable_query_log
  404. while ($i)
  405. {
  406. dec $i;
  407. insert into t1 values (null);
  408. }
  409. --enable_query_log
  410. check table t1 extended;
  411. delete from t1 where i = 10;
  412. check table t1 extended;
  413. drop table t1;
  414. create table t1 (i int auto_increment not null primary key);
  415. let $i=510;
  416. --disable_query_log
  417. while ($i)
  418. {
  419. dec $i;
  420. insert into t1 values (null);
  421. }
  422. --enable_query_log
  423. check table t1 extended;
  424. delete from t1 where i = 10;
  425. check table t1 extended;
  426. drop table t1;
  427. #
  428. # BUG#29445 - match ... against () never returns
  429. #
  430. CREATE TABLE t1(a VARCHAR(20), FULLTEXT(a)) transactional=0;
  431. INSERT INTO t1 VALUES('Offside'),('City Of God');
  432. SELECT a FROM t1 WHERE MATCH a AGAINST ('+city of*' IN BOOLEAN MODE);
  433. SELECT a FROM t1 WHERE MATCH a AGAINST ('+city (of)*' IN BOOLEAN MODE);
  434. DROP TABLE t1;
  435. #
  436. # BUG#36104 - INFORMATION_SCHEMA.TABLES shows TRANSACTIONAL=1 twice in
  437. # CREATE_OPTIONS
  438. #
  439. create table t1(a int) engine=aria transactional=1;
  440. select CREATE_OPTIONS from information_schema.TABLES where
  441. TABLE_SCHEMA='test' and TABLE_NAME='t1';
  442. drop table t1;
  443. #
  444. # BUG#39697 - Aria: hang when failing to insert due to UNIQUE
  445. #
  446. create table t1 (a int, unique(a)) engine=aria transactional=1;
  447. insert into t1 values(1);
  448. --error 1062
  449. insert into t1 values(2),(2);
  450. create table t2 (a int, unique(a)) engine=aria transactional=0 row_format=dynamic;
  451. insert into t2 values(1);
  452. --error 1062
  453. insert into t2 values(2),(2);
  454. connect (root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
  455. connection root;
  456. insert into t1 values(3);
  457. insert into t2 values(3);
  458. connection default;
  459. drop table t1, t2;
  460. #
  461. # BUG#909635 - MariaDB crashes on a select with long varchar and blob fields
  462. #
  463. CREATE TABLE t1 (
  464. a INT PRIMARY KEY,
  465. b CHAR(255),
  466. c VARCHAR(2048),
  467. d VARCHAR(18990),
  468. e CHAR(128),
  469. f CHAR(192)
  470. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  471. INSERT INTO t1 VALUES
  472. (1,'A','B','C','','D'),
  473. (2,'Abcdefghi','E','F','','G');
  474. CREATE TABLE t2 (
  475. g INT PRIMARY KEY,
  476. h CHAR(32),
  477. i CHAR(255),
  478. j TEXT
  479. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  480. INSERT INTO t2 VALUES (1,'M','','H'),
  481. (2,'N','','H');
  482. SELECT * FROM t1, t2 WHERE a = g ORDER BY b;
  483. drop table t1,t2;
  484. # End of 5.1 tests
  485. #
  486. # bug#905716: Assertion `page->size <= share->max_index_block_size'
  487. #
  488. CREATE TABLE t1 ( a VARCHAR(800),KEY(a) )
  489. ENGINE=Aria DEFAULT CHARACTER SET latin1;
  490. INSERT INTO t1 VALUES
  491. (REPEAT('abc ',200)), (REPEAT('def ',200)),
  492. (REPEAT('ghi ',200)), (REPEAT('jkl ',200));
  493. INSERT INTO t1 SELECT * FROM t1;
  494. # check table is not needed to reproduce the problem,
  495. # but shows that by this time the table appears to be okay.
  496. CHECK TABLE t1;
  497. ALTER TABLE t1 MODIFY a VARCHAR(800) CHARSET `ucs2`;
  498. CHECK TABLE t1;
  499. SHOW CREATE table t1;
  500. DROP TABLE t1;
  501. # End of 5.2 tests
  502. --disable_result_log
  503. --disable_query_log
  504. eval set global storage_engine=$default_engine,
  505. aria_page_checksum=$default_checksum,
  506. aria_log_file_size=$default_log_file_size;
  507. --enable_result_log
  508. --enable_query_log