List:Commits« Previous MessageNext Message »
From:Ole John Aske Date:March 24 2011 12:46pm
Subject:bzr commit into mysql-trunk branch (ole.john.aske:3312) Bug#11764737
View as plain text  
#At file:///net/fimafeng09/export/home/tmp/oleja/mysql/mysql-trunk/ based on revid:ole.john.aske@stripped

 3312 Ole John Aske	2011-03-24
      Updated resultfiles for 'suite=parts' after push of fix for Bug#11764737
      ('OPTIMIZER IS OVERLY EAGER TO REQUEST ORDERED ACCESS')
      
      As results are not any longer implicitly ordered even when 'ORDER BY' 
      is *not* specified the order of rows in these results has changes.
      
      The rows are now ordered in their 'natural' order as determined
      by each storage engine. (Still when 'ORDER BY' is not specifyed)

    modified:
      mysql-test/suite/parts/r/partition-dml-1-1-innodb-modes.result
      mysql-test/suite/parts/r/partition-dml-1-1-myisam-modes.result
      mysql-test/suite/parts/r/partition-dml-1-10-innodb.result
      mysql-test/suite/parts/r/partition-dml-1-10-myisam.result
      mysql-test/suite/parts/r/partition-dml-1-8-innodb.result
      mysql-test/suite/parts/r/partition-dml-1-9-innodb.result
      mysql-test/suite/parts/r/partition-dml-1-9-myisam.result
      mysql-test/suite/parts/r/partition_char_innodb.result
      mysql-test/suite/parts/r/partition_char_myisam.result
      mysql-test/suite/parts/r/partition_datetime_innodb.result
      mysql-test/suite/parts/r/partition_datetime_myisam.result
      mysql-test/suite/parts/r/partition_decimal_innodb.result
      mysql-test/suite/parts/r/partition_decimal_myisam.result
      mysql-test/suite/parts/r/partition_float_innodb.result
      mysql-test/suite/parts/r/partition_float_myisam.result
      mysql-test/suite/parts/r/partition_recover_myisam.result
      mysql-test/suite/parts/r/partition_repair_myisam.result
      mysql-test/suite/parts/r/partition_special_innodb.result
      mysql-test/suite/parts/r/partition_special_myisam.result
=== modified file 'mysql-test/suite/parts/r/partition-dml-1-1-innodb-modes.result'
--- a/mysql-test/suite/parts/r/partition-dml-1-1-innodb-modes.result	2011-02-17 15:36:05 +0000
+++ b/mysql-test/suite/parts/r/partition-dml-1-1-innodb-modes.result	2011-03-24 12:46:19 +0000
@@ -69,14 +69,14 @@ set @@global.sql_mode= '';
 connect  session1, localhost, test_user_1,'testpw',test;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	(p0-29-)subp3
-2	(p0-29-)subp3
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
 send
 UPDATE t1 SET b='table-upd-1' WHERE a BETWEEN 0 AND 9;
 connect  session2, localhost, test_user_2,'testpw',test;
@@ -84,74 +84,74 @@ UPDATE t1 SET b='table-upd-2' WHERE a BE
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 INSERT INTO t1 VALUES (11, 'table-ins');
 INSERT INTO t1 VALUES (12, 'table-ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-11	table-ins
 12	table-ins
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+11	table-ins
+2	table-upd-2
 DELETE FROM t1 WHERE b= 'table-ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 #######################################################
 # UPDATE with partition selection
 connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 send
 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
 connection session2;
@@ -159,61 +159,61 @@ UPDATE t1 PARTITION (`p0-29`) SET b='p0-
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (11, '(p0-29-)ins');
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (12, '(p0-29-)ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-11	(p0-29-)ins
 12	(p0-29-)ins
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+11	(p0-29-)ins
+23	(p0-29-)subp5
+2	p0-29-upd-2
 DELETE FROM t1 PARTITION (`p0-29`,subp5) WHERE b= '(p0-29-)ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 disconnect session1;
 disconnect session2;
 connection default;
@@ -285,14 +285,14 @@ set @@global.sql_mode= ansi;
 connect  session1, localhost, test_user_1,'testpw',test;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	(p0-29-)subp3
-2	(p0-29-)subp3
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
 send
 UPDATE t1 SET b='table-upd-1' WHERE a BETWEEN 0 AND 9;
 connect  session2, localhost, test_user_2,'testpw',test;
@@ -300,74 +300,74 @@ UPDATE t1 SET b='table-upd-2' WHERE a BE
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 INSERT INTO t1 VALUES (11, 'table-ins');
 INSERT INTO t1 VALUES (12, 'table-ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-11	table-ins
 12	table-ins
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+11	table-ins
+2	table-upd-2
 DELETE FROM t1 WHERE b= 'table-ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 #######################################################
 # UPDATE with partition selection
 connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 send
 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
 connection session2;
@@ -375,61 +375,61 @@ UPDATE t1 PARTITION (`p0-29`) SET b='p0-
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (11, '(p0-29-)ins');
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (12, '(p0-29-)ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-11	(p0-29-)ins
 12	(p0-29-)ins
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+11	(p0-29-)ins
+23	(p0-29-)subp5
+2	p0-29-upd-2
 DELETE FROM t1 PARTITION (`p0-29`,subp5) WHERE b= '(p0-29-)ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 disconnect session1;
 disconnect session2;
 connection default;
@@ -501,14 +501,14 @@ set @@global.sql_mode= traditional;
 connect  session1, localhost, test_user_1,'testpw',test;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	(p0-29-)subp3
-2	(p0-29-)subp3
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
 send
 UPDATE t1 SET b='table-upd-1' WHERE a BETWEEN 0 AND 9;
 connect  session2, localhost, test_user_2,'testpw',test;
@@ -516,74 +516,74 @@ UPDATE t1 SET b='table-upd-2' WHERE a BE
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 INSERT INTO t1 VALUES (11, 'table-ins');
 INSERT INTO t1 VALUES (12, 'table-ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-11	table-ins
 12	table-ins
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+11	table-ins
+2	table-upd-2
 DELETE FROM t1 WHERE b= 'table-ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 #######################################################
 # UPDATE with partition selection
 connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 send
 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
 connection session2;
@@ -591,61 +591,61 @@ UPDATE t1 PARTITION (`p0-29`) SET b='p0-
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (11, '(p0-29-)ins');
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (12, '(p0-29-)ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-11	(p0-29-)ins
 12	(p0-29-)ins
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+11	(p0-29-)ins
+23	(p0-29-)subp5
+2	p0-29-upd-2
 DELETE FROM t1 PARTITION (`p0-29`,subp5) WHERE b= '(p0-29-)ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 disconnect session1;
 disconnect session2;
 connection default;

=== modified file 'mysql-test/suite/parts/r/partition-dml-1-1-myisam-modes.result'
--- a/mysql-test/suite/parts/r/partition-dml-1-1-myisam-modes.result	2011-02-17 15:36:05 +0000
+++ b/mysql-test/suite/parts/r/partition-dml-1-1-myisam-modes.result	2011-03-24 12:46:19 +0000
@@ -69,14 +69,14 @@ set @@global.sql_mode= '';
 connect  session1, localhost, test_user_1,'testpw',test;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	(p0-29-)subp3
-2	(p0-29-)subp3
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
 send
 UPDATE t1 SET b='table-upd-1' WHERE a BETWEEN 0 AND 9;
 connect  session2, localhost, test_user_2,'testpw',test;
@@ -84,74 +84,74 @@ UPDATE t1 SET b='table-upd-2' WHERE a BE
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 INSERT INTO t1 VALUES (11, 'table-ins');
 INSERT INTO t1 VALUES (12, 'table-ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-11	table-ins
 12	table-ins
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+11	table-ins
+2	table-upd-2
 DELETE FROM t1 WHERE b= 'table-ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 #######################################################
 # UPDATE with partition selection
 connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 send
 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
 connection session2;
@@ -159,61 +159,61 @@ UPDATE t1 PARTITION (`p0-29`) SET b='p0-
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (11, '(p0-29-)ins');
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (12, '(p0-29-)ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-11	(p0-29-)ins
 12	(p0-29-)ins
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+11	(p0-29-)ins
+23	(p0-29-)subp5
+2	p0-29-upd-2
 DELETE FROM t1 PARTITION (`p0-29`,subp5) WHERE b= '(p0-29-)ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 disconnect session1;
 disconnect session2;
 connection default;
@@ -285,14 +285,14 @@ set @@global.sql_mode= ansi;
 connect  session1, localhost, test_user_1,'testpw',test;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	(p0-29-)subp3
-2	(p0-29-)subp3
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
 send
 UPDATE t1 SET b='table-upd-1' WHERE a BETWEEN 0 AND 9;
 connect  session2, localhost, test_user_2,'testpw',test;
@@ -300,74 +300,74 @@ UPDATE t1 SET b='table-upd-2' WHERE a BE
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 INSERT INTO t1 VALUES (11, 'table-ins');
 INSERT INTO t1 VALUES (12, 'table-ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-11	table-ins
 12	table-ins
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+11	table-ins
+2	table-upd-2
 DELETE FROM t1 WHERE b= 'table-ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 #######################################################
 # UPDATE with partition selection
 connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 send
 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
 connection session2;
@@ -375,61 +375,61 @@ UPDATE t1 PARTITION (`p0-29`) SET b='p0-
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (11, '(p0-29-)ins');
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (12, '(p0-29-)ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-11	(p0-29-)ins
 12	(p0-29-)ins
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+11	(p0-29-)ins
+23	(p0-29-)subp5
+2	p0-29-upd-2
 DELETE FROM t1 PARTITION (`p0-29`,subp5) WHERE b= '(p0-29-)ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 disconnect session1;
 disconnect session2;
 connection default;
@@ -501,14 +501,14 @@ set @@global.sql_mode= traditional;
 connect  session1, localhost, test_user_1,'testpw',test;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	(p0-29-)subp3
-2	(p0-29-)subp3
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
 send
 UPDATE t1 SET b='table-upd-1' WHERE a BETWEEN 0 AND 9;
 connect  session2, localhost, test_user_2,'testpw',test;
@@ -516,74 +516,74 @@ UPDATE t1 SET b='table-upd-2' WHERE a BE
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 INSERT INTO t1 VALUES (11, 'table-ins');
 INSERT INTO t1 VALUES (12, 'table-ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-11	table-ins
 12	table-ins
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+11	table-ins
+2	table-upd-2
 DELETE FROM t1 WHERE b= 'table-ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 #######################################################
 # UPDATE with partition selection
 connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	table-upd-2
-2	table-upd-2
 3	table-upd-2
+22	(p0-29-)subp5
+1	table-upd-2
 4	table-upd-2
+23	(p0-29-)subp5
+2	table-upd-2
 send
 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
 connection session2;
@@ -591,61 +591,61 @@ UPDATE t1 PARTITION (`p0-29`) SET b='p0-
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (11, '(p0-29-)ins');
 INSERT INTO t1 PARTITION (`p0-29`, subp4) VALUES (12, '(p0-29-)ins');
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-11	(p0-29-)ins
 12	(p0-29-)ins
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+11	(p0-29-)ins
+23	(p0-29-)subp5
+2	p0-29-upd-2
 DELETE FROM t1 PARTITION (`p0-29`,subp5) WHERE b= '(p0-29-)ins';
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session1;
 reap
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-2
-2	p0-29-upd-2
 3	p0-29-upd-2
+22	(p0-29-)subp5
+1	p0-29-upd-2
 4	p0-29-upd-2
+23	(p0-29-)subp5
+2	p0-29-upd-2
 disconnect session1;
 disconnect session2;
 connection default;

=== modified file 'mysql-test/suite/parts/r/partition-dml-1-10-innodb.result'
--- a/mysql-test/suite/parts/r/partition-dml-1-10-innodb.result	2011-02-17 15:36:05 +0000
+++ b/mysql-test/suite/parts/r/partition-dml-1-10-innodb.result	2011-03-24 12:46:19 +0000
@@ -94,25 +94,25 @@ connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
 21	(p0-29-)subp5
-22	(p0-29-)subp5
-23	(p0-29-)subp5
 24	(p0-29-)subp5
-1	p0-29-upd-1
-2	p0-29-upd-1
 3	p0-29-upd-1
+22	(p0-29-)subp5
+1	p0-29-upd-1
 4	p0-29-upd-1
+23	(p0-29-)subp5
+2	p0-29-upd-1
 DEALLOCATE PREPARE st1;
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	p0-29-upd-1
-2	p0-29-upd-1
 3	p0-29-upd-1
-4	p0-29-upd-1
 21	p0-29-upd-2
+24	p0-29-upd-2
+1	p0-29-upd-1
+4	p0-29-upd-1
 22	p0-29-upd-2
+2	p0-29-upd-1
 23	p0-29-upd-2
-24	p0-29-upd-2
 COMMIT WORK;
 DEALLOCATE PREPARE st2;
 connection default;
@@ -120,14 +120,14 @@ disconnect session1;
 disconnect session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	p0-29-upd-1
-2	p0-29-upd-1
 3	p0-29-upd-1
-4	p0-29-upd-1
 21	p0-29-upd-2
+24	p0-29-upd-2
+1	p0-29-upd-1
+4	p0-29-upd-1
 22	p0-29-upd-2
+2	p0-29-upd-1
 23	p0-29-upd-2
-24	p0-29-upd-2
 DROP TABLE t1;
 DROP USER test_user_1;
 DROP USER test_user_2;

=== modified file 'mysql-test/suite/parts/r/partition-dml-1-10-myisam.result'
--- a/mysql-test/suite/parts/r/partition-dml-1-10-myisam.result	2011-02-17 15:36:05 +0000
+++ b/mysql-test/suite/parts/r/partition-dml-1-10-myisam.result	2011-03-24 12:46:19 +0000
@@ -92,26 +92,26 @@ EXECUTE st2 USING @var1;
 connection session1;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	p0-29-upd-1
-2	p0-29-upd-1
 3	p0-29-upd-1
-4	p0-29-upd-1
 21	p0-29-upd-2
+24	p0-29-upd-2
+1	p0-29-upd-1
+4	p0-29-upd-1
 22	p0-29-upd-2
+2	p0-29-upd-1
 23	p0-29-upd-2
-24	p0-29-upd-2
 DEALLOCATE PREPARE st1;
 connection session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	p0-29-upd-1
-2	p0-29-upd-1
 3	p0-29-upd-1
-4	p0-29-upd-1
 21	p0-29-upd-2
+24	p0-29-upd-2
+1	p0-29-upd-1
+4	p0-29-upd-1
 22	p0-29-upd-2
+2	p0-29-upd-1
 23	p0-29-upd-2
-24	p0-29-upd-2
 COMMIT WORK;
 DEALLOCATE PREPARE st2;
 connection default;
@@ -119,14 +119,14 @@ disconnect session1;
 disconnect session2;
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	p0-29-upd-1
-2	p0-29-upd-1
 3	p0-29-upd-1
-4	p0-29-upd-1
 21	p0-29-upd-2
+24	p0-29-upd-2
+1	p0-29-upd-1
+4	p0-29-upd-1
 22	p0-29-upd-2
+2	p0-29-upd-1
 23	p0-29-upd-2
-24	p0-29-upd-2
 DROP TABLE t1;
 DROP USER test_user_1;
 DROP USER test_user_2;

=== modified file 'mysql-test/suite/parts/r/partition-dml-1-8-innodb.result'
--- a/mysql-test/suite/parts/r/partition-dml-1-8-innodb.result	2011-02-17 15:36:05 +0000
+++ b/mysql-test/suite/parts/r/partition-dml-1-8-innodb.result	2011-03-24 12:46:19 +0000
@@ -87,14 +87,14 @@ connect  session2, localhost, test_user_
 ####### expect p0-29 has not been updated
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b
-1	(p0-29-)subp3
-2	(p0-29-)subp3
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
 SELECT * FROM t1 PARTITION (`p0-29`) WHERE a BETWEEN 0 AND 9 LOCK IN SHARE MODE;
 ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 SELECT * FROM t1 PARTITION (`p0-29`) WHERE a BETWEEN 20 AND 29 FOR UPDATE;

=== modified file 'mysql-test/suite/parts/r/partition-dml-1-9-innodb.result'
--- a/mysql-test/suite/parts/r/partition-dml-1-9-innodb.result	2011-02-17 15:36:05 +0000
+++ b/mysql-test/suite/parts/r/partition-dml-1-9-innodb.result	2011-03-24 12:46:19 +0000
@@ -126,37 +126,37 @@ SELECT t1.a, t2.b FROM t1 PARTITION (`p0
 WHERE t1.a = t2.a;
 SELECT * FROM v1;
 a	b
--4	(pNeg-)subp0
 -3	(pNeg-)subp0
--2	(pNeg-)subp0
+-4	(pNeg-)subp0
 -1	(pNeg-)subp0
-1	(p0-29-)subp3
-2	(p0-29-)subp3
+-2	(pNeg-)subp0
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
-31	(p30-299-)subp6
-32	(p30-299-)subp6
 33	(p30-299-)subp6
-34	(p30-299-)subp6
 231	(p30-299-)subp8
+234	(p30-299-)subp8
+31	(p30-299-)subp6
+34	(p30-299-)subp6
 232	(p30-299-)subp8
+32	(p30-299-)subp6
 233	(p30-299-)subp8
-234	(p30-299-)subp8
-301	(p300-2999-)subp8
-302	(p300-2999-)subp8
 303	(p300-2999-)subp8
+301	(p300-2999-)subp8
 304	(p300-2999-)subp8
-3001	(p3000-299999-)subp12
-3002	(p3000-299999-)subp12
+302	(p300-2999-)subp8
 3003	(p3000-299999-)subp12
-3004	(p3000-299999-)subp12
-299996	(p3000-299999-)subp14
 299997	(p3000-299999-)subp14
+3001	(p3000-299999-)subp12
+3004	(p3000-299999-)subp12
 299998	(p3000-299999-)subp14
+3002	(p3000-299999-)subp12
+299996	(p3000-299999-)subp14
 299999	(p3000-299999-)subp14
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b

=== modified file 'mysql-test/suite/parts/r/partition-dml-1-9-myisam.result'
--- a/mysql-test/suite/parts/r/partition-dml-1-9-myisam.result	2011-02-17 15:36:05 +0000
+++ b/mysql-test/suite/parts/r/partition-dml-1-9-myisam.result	2011-03-24 12:46:19 +0000
@@ -126,37 +126,37 @@ SELECT t1.a, t2.b FROM t1 PARTITION (`p0
 WHERE t1.a = t2.a;
 SELECT * FROM v1;
 a	b
--4	(pNeg-)subp0
 -3	(pNeg-)subp0
--2	(pNeg-)subp0
+-4	(pNeg-)subp0
 -1	(pNeg-)subp0
-1	(p0-29-)subp3
-2	(p0-29-)subp3
+-2	(pNeg-)subp0
 3	(p0-29-)subp3
-4	(p0-29-)subp3
 21	(p0-29-)subp5
+24	(p0-29-)subp5
+1	(p0-29-)subp3
+4	(p0-29-)subp3
 22	(p0-29-)subp5
+2	(p0-29-)subp3
 23	(p0-29-)subp5
-24	(p0-29-)subp5
-31	(p30-299-)subp6
-32	(p30-299-)subp6
 33	(p30-299-)subp6
-34	(p30-299-)subp6
 231	(p30-299-)subp8
+234	(p30-299-)subp8
+31	(p30-299-)subp6
+34	(p30-299-)subp6
 232	(p30-299-)subp8
+32	(p30-299-)subp6
 233	(p30-299-)subp8
-234	(p30-299-)subp8
-301	(p300-2999-)subp8
-302	(p300-2999-)subp8
 303	(p300-2999-)subp8
+301	(p300-2999-)subp8
 304	(p300-2999-)subp8
-3001	(p3000-299999-)subp12
-3002	(p3000-299999-)subp12
+302	(p300-2999-)subp8
 3003	(p3000-299999-)subp12
-3004	(p3000-299999-)subp12
-299996	(p3000-299999-)subp14
 299997	(p3000-299999-)subp14
+3001	(p3000-299999-)subp12
+3004	(p3000-299999-)subp12
 299998	(p3000-299999-)subp14
+3002	(p3000-299999-)subp12
+299996	(p3000-299999-)subp14
 299999	(p3000-299999-)subp14
 SELECT * FROM t1 PARTITION (`p0-29`);
 a	b

=== modified file 'mysql-test/suite/parts/r/partition_char_innodb.result'
--- a/mysql-test/suite/parts/r/partition_char_innodb.result	2008-11-04 07:43:21 +0000
+++ b/mysql-test/suite/parts/r/partition_char_innodb.result	2011-03-24 12:46:19 +0000
@@ -20,9 +20,9 @@ insert into t1 values (repeat('a',255)),
 select * from t1;
 a
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 b
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 select * from t1 where a='b';
 a
 b
@@ -31,8 +31,8 @@ delete from t1 where a='bb';
 select * from t1;
 a
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 drop table t1;
 create table t2 (a char(255) not null, primary key(a)) engine='InnoDB' 
 partition by key (a) partitions 27;
@@ -76,32 +76,32 @@ count(*)
 26
 select * from t2;
 a
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
 ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
-eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
-mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
+fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
+zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
+eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
-ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
-rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
-ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
-ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
-vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
+rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
+iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
-zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
 drop table t2;
 ---- Partitioning and binary data type
 create table t1 (a binary(255) not null, primary key(a)) engine='InnoDB' 
@@ -125,9 +125,9 @@ insert into t1 values (repeat('a',255)),
 select hex(a) from t1;
 hex(a)
 616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
 620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 select a from t1 where substr(a,1,2)='b\0';
 a
 b
@@ -139,8 +139,8 @@ delete from t1 where substr(a,1,2)='cc';
 select hex(a) from t1;
 hex(a)
 616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
 626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
 drop table t1;
 create table t2 (a binary(255) not null, primary key(a)) engine='InnoDB' 
 partition by key (a) partitions 27;
@@ -184,32 +184,32 @@ count(*)
 26
 select hex(a) from t2;
 hex(a)
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 drop table t2;
 ---- Partitioning and varchar data type
 create table t1 (a varchar(767) not null, primary key(a)) engine='InnoDB' 
@@ -233,9 +233,9 @@ insert into t1 values (repeat('a',767)),
 select * from t1;
 a
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii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nnnnnnnnnnnnnnnnnnnnnnnnn
+qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
 cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
-ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
-hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
+ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
+uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
+rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
+mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+vvvvvvvvvvvvvvvvvvvvvvvvv
+hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
-mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
-nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
-oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
-ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
-qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
-rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
+gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
-ttttttttttttttttttttttttttttttttttttttttttttttttt
-uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
-vvvvvvvvvvvvvvvvvvvvvvvvv
-wwwwwwwwwwwwwwww
 xxxxxxxxx
 yyyy
-z
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
+wwwwwwwwwwwwwwww
 drop table t2;
 ---- Partitioning and varbinary data type
 create table t1 (a varbinary(767) not null, primary key(a)) engine='InnoDB' 
@@ -338,9 +338,9 @@ insert into t1 values (repeat('a',767)),
 select * from t1;
 a
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+xxxxxxxxx
+kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
-ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
-hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
+ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
-mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
+cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
-oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
-ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
-rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
-ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
 ttttttttttttttttttttttttttttttttttttttttttttttttt
-uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
-vvvvvvvvvvvvvvvvvvvvvvvvv
 wwwwwwwwwwwwwwww
-xxxxxxxxx
-yyyy
 z
+gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
+hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 drop table t2;
 ---- Partitioning and enum data type
 create table t1 (a enum('A','B','C','D','E','F','G','H','I','J','K','L') not null, primary key(a)) engine='InnoDB' 
@@ -444,8 +444,8 @@ select * from t1;
 a
 A
 D
-G
 L
+G
 select * from t1 where a='A';
 a
 A
@@ -453,8 +453,8 @@ update t1 set a='E' where a='L';
 select * from t1;
 a
 A
-D
 E
+D
 G
 delete from t1 where a='E';
 select * from t1;
@@ -513,42 +513,42 @@ count(*)
 36
 select * from t2;
 a
-
-1
-2
 3
-4
-5
-6
-7
 8
+O
+T
 9
-0
-B
-C
 D
+U
+Z
 E
-F
-G
-H
-I
 J
+4
 K
-L
-M
-N
-O
 P
+5
+0
 Q
-R
-S
-T
-U
 V
+F
+
 W
+G
+L
+1
+6
+M
+R
+7
+B
+S
 X
+C
+H
+2
 Y
-Z
+I
+N
 drop table t2;
 ---- Partitioning and set data type
 create table t1 (a set('A','B','C','D','E','F','G','H','I','J','K','L') not null, primary key(a)) engine='InnoDB' 

=== modified file 'mysql-test/suite/parts/r/partition_char_myisam.result'
--- a/mysql-test/suite/parts/r/partition_char_myisam.result	2008-11-04 07:43:21 +0000
+++ b/mysql-test/suite/parts/r/partition_char_myisam.result	2011-03-24 12:46:19 +0000
@@ -20,9 +20,9 @@ insert into t1 values (repeat('a',255)),
 select * from t1;
 a
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 b
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 select * from t1 where a='b';
 a
 b
@@ -31,8 +31,8 @@ delete from t1 where a='bb';
 select * from t1;
 a
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 drop table t1;
 create table t2 (a char(255) not null, primary key(a)) engine='MyISAM' 
 partition by key (a) partitions 27;
@@ -76,32 +76,32 @@ count(*)
 26
 select * from t2;
 a
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
 ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
-eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
-kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
-mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
+fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
+zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
+eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
-ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
-rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
-ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
-ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
-vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
+rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
+iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
-zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
 drop table t2;
 ---- Partitioning and binary data type
 create table t1 (a binary(255) not null, primary key(a)) engine='MyISAM' 
@@ -125,9 +125,9 @@ insert into t1 values (repeat('a',255)),
 select hex(a) from t1;
 hex(a)
 616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
 620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 select a from t1 where substr(a,1,2)='b\0';
 a
 b
@@ -139,8 +139,8 @@ delete from t1 where substr(a,1,2)='cc';
 select hex(a) from t1;
 hex(a)
 616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
 626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161
 drop table t1;
 create table t2 (a binary(255) not null, primary key(a)) engine='MyISAM' 
 partition by key (a) partitions 27;
@@ -184,32 +184,32 @@ count(*)
 26
 select hex(a) from t2;
 hex(a)
-616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262626262620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737373737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707070707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E6E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A6A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D6D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797979797900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A7A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 drop table t2;
 ---- Partitioning and varchar data type
 create table t1 (a varchar(767) not null, primary key(a)) engine='MyISAM' 
@@ -233,9 +233,9 @@ insert into t1 values (repeat('a',767)),
 select * from t1;
 a
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 drop table t1;
 create table t2 (a varchar(767) not null, primary key(a)) engine='MyISAM' 
 partition by key (a) partitions 27;
@@ -289,32 +289,32 @@ count(*)
 26
 select * from t2;
 a
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
+z
 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+ttttttttttttttttttttttttttttttttttttttttttttttttt
+ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
+nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
+qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
 cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
-ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
-fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
-hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
-iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
+ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj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hhhhhhhhhhhhhhhhhhhhhhh
 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
-mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
-nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
-oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
-ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
-qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
-rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
+gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
-ttttttttttttttttttttttttttttttttttttttttttttttttt
-uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
-vvvvvvvvvvvvvvvvvvvvvvvvv
-wwwwwwwwwwwwwwww
 xxxxxxxxx
 yyyy
-z
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
+wwwwwwwwwwwwwwww
 drop table t2;
 ---- Partitioning and varbinary data type
 create table t1 (a varbinary(767) not null, primary key(a)) engine='MyISAM' 
@@ -338,9 +338,9 @@ ins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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+xxxxxxxxx
+kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
-cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
-ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
-gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
-hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh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kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
-lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
-mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
+cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
+ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
-oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
-ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
-rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
-ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
 ttttttttttttttttttttttttttttttttttttttttttttttttt
-uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
-vvvvvvvvvvvvvvvvvvvvvvvvv
 wwwwwwwwwwwwwwww
-xxxxxxxxx
-yyyy
 z
+gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
+hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 drop table t2;
 ---- Partitioning and enum data type
 create table t1 (a enum('A','B','C','D','E','F','G','H','I','J','K','L') not null, primary key(a)) engine='MyISAM' 
@@ -444,8 +444,8 @@ select * from t1;
 a
 A
 D
-G
 L
+G
 select * from t1 where a='A';
 a
 A
@@ -453,8 +453,8 @@ update t1 set a='E' where a='L';
 select * from t1;
 a
 A
-D
 E
+D
 G
 delete from t1 where a='E';
 select * from t1;
@@ -513,42 +513,42 @@ count(*)
 36
 select * from t2;
 a
-
-1
-2
 3
-4
-5
-6
-7
 8
+O
+T
 9
-0
-B
-C
 D
+U
+Z
 E
-F
-G
-H
-I
 J
+4
 K
-L
-M
-N
-O
 P
+5
+0
 Q
-R
-S
-T
-U
 V
+F
+
 W
+G
+L
+1
+6
+M
+R
+7
+B
+S
 X
+C
+H
+2
 Y
-Z
+I
+N
 drop table t2;
 ---- Partitioning and set data type
 create table t1 (a set('A','B','C','D','E','F','G','H','I','J','K','L') not null, primary key(a)) engine='MyISAM' 

=== modified file 'mysql-test/suite/parts/r/partition_datetime_innodb.result'
--- a/mysql-test/suite/parts/r/partition_datetime_innodb.result	2009-12-14 17:27:43 +0000
+++ b/mysql-test/suite/parts/r/partition_datetime_innodb.result	2011-03-24 12:46:19 +0000
@@ -18,9 +18,9 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975-01-01 21:21:21'), ('2020-12-31 12:10:30'), ('1980-10-14 03:03'), ('2000-06-15 23:59');
 select * from t1;
 a
-1975-01-01 21:21:21
-1980-10-14 03:03:00
 2000-06-15 23:59:00
+1980-10-14 03:03:00
+1975-01-01 21:21:21
 2020-12-31 12:10:30
 select * from t1 where a=19801014030300;
 a
@@ -28,8 +28,8 @@ a
 delete from t1 where a=19801014030300;
 select * from t1;
 a
-1975-01-01 21:21:21
 2000-06-15 23:59:00
+1975-01-01 21:21:21
 2020-12-31 12:10:30
 drop table t1;
 create table t2 (a timestamp not null, primary key(a)) engine='InnoDB' 
@@ -45,19 +45,19 @@ PARTITIONS 12 */
 insert into t2 values ('1975-01-01 0:1:1'), ('2020-12-31 10:11:12'), ('1980-10-14 13:14:15'), ('2000-06-15 14:15:16');
 select * from t2;
 a
-1975-01-01 00:01:01
 1980-10-14 13:14:15
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1975-01-01 00:01:01
 select * from t2 where a='1980-10-14 13:14:15';
 a
 1980-10-14 13:14:15
 delete from t2 where a='1980-10-14 13:14:15';
 select * from t2;
 a
-1975-01-01 00:01:01
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1975-01-01 00:01:01
 delete from t2;
 59 inserts;
 insert into t2 values (19710101000000+59);
@@ -125,62 +125,62 @@ count(*)
 select * from t2;
 a
 1971-01-01 00:00:01
-1971-01-01 00:00:02
-1971-01-01 00:00:03
 1971-01-01 00:00:04
-1971-01-01 00:00:05
 1971-01-01 00:00:06
-1971-01-01 00:00:07
-1971-01-01 00:00:08
-1971-01-01 00:00:09
-1971-01-01 00:00:10
-1971-01-01 00:00:11
-1971-01-01 00:00:12
-1971-01-01 00:00:13
 1971-01-01 00:00:14
-1971-01-01 00:00:15
 1971-01-01 00:00:16
 1971-01-01 00:00:17
 1971-01-01 00:00:18
-1971-01-01 00:00:19
-1971-01-01 00:00:20
-1971-01-01 00:00:21
 1971-01-01 00:00:22
 1971-01-01 00:00:23
-1971-01-01 00:00:24
-1971-01-01 00:00:25
 1971-01-01 00:00:26
 1971-01-01 00:00:27
-1971-01-01 00:00:28
 1971-01-01 00:00:29
 1971-01-01 00:00:30
-1971-01-01 00:00:31
-1971-01-01 00:00:32
 1971-01-01 00:00:33
-1971-01-01 00:00:34
-1971-01-01 00:00:35
 1971-01-01 00:00:36
-1971-01-01 00:00:37
 1971-01-01 00:00:38
+1971-01-01 00:00:44
+1971-01-01 00:00:46
+1971-01-01 00:00:53
+1971-01-01 00:00:07
+1971-01-01 00:00:09
+1971-01-01 00:00:10
+1971-01-01 00:00:12
+1971-01-01 00:00:15
+1971-01-01 00:00:19
+1971-01-01 00:00:24
+1971-01-01 00:00:28
 1971-01-01 00:00:39
-1971-01-01 00:00:40
 1971-01-01 00:00:41
 1971-01-01 00:00:42
 1971-01-01 00:00:43
-1971-01-01 00:00:44
-1971-01-01 00:00:45
-1971-01-01 00:00:46
 1971-01-01 00:00:47
 1971-01-01 00:00:48
 1971-01-01 00:00:49
-1971-01-01 00:00:50
-1971-01-01 00:00:51
 1971-01-01 00:00:52
-1971-01-01 00:00:53
-1971-01-01 00:00:54
 1971-01-01 00:00:55
 1971-01-01 00:00:56
 1971-01-01 00:00:57
+1971-01-01 00:00:02
+1971-01-01 00:00:03
+1971-01-01 00:00:05
+1971-01-01 00:00:08
+1971-01-01 00:00:11
+1971-01-01 00:00:13
+1971-01-01 00:00:20
+1971-01-01 00:00:21
+1971-01-01 00:00:25
+1971-01-01 00:00:31
+1971-01-01 00:00:32
+1971-01-01 00:00:34
+1971-01-01 00:00:35
+1971-01-01 00:00:37
+1971-01-01 00:00:40
+1971-01-01 00:00:45
+1971-01-01 00:00:50
+1971-01-01 00:00:51
+1971-01-01 00:00:54
 1971-01-01 00:00:58
 1971-01-01 00:00:59
 drop table t2;
@@ -204,19 +204,19 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975-01-01'), ('2020-12-31'), ('1980-10-14'), ('2000-06-15');
 select * from t1;
 a
-1975-01-01
 1980-10-14
-2000-06-15
 2020-12-31
+1975-01-01
+2000-06-15
 select * from t1 where a=19801014;
 a
 1980-10-14
 delete from t1 where a=19801014;
 select * from t1;
 a
+2020-12-31
 1975-01-01
 2000-06-15
-2020-12-31
 drop table t1;
 create table t2 (a date not null, primary key(a)) engine='InnoDB' 
 partition by key (a) partitions 12;
@@ -231,10 +231,10 @@ PARTITIONS 12 */
 insert into t2 values ('1975-01-01'), ('2020-12-31'), ('1980-10-14'), ('2000-06-15');
 select * from t2;
 a
-1975-01-01
 1980-10-14
-2000-06-15
+1975-01-01
 2020-12-31
+2000-06-15
 select * from t2 where a='1980-10-14';
 a
 1980-10-14
@@ -242,8 +242,8 @@ delete from t2 where a='1980-10-14';
 select * from t2;
 a
 1975-01-01
-2000-06-15
 2020-12-31
+2000-06-15
 delete from t2;
 28 inserts;
 insert into t2 values (19700101+28-1);
@@ -335,90 +335,90 @@ count(*)
 84
 select * from t2;
 a
-1970-01-01
-1970-01-02
-1970-01-03
 1970-01-04
-1970-01-05
-1970-01-06
-1970-01-07
-1970-01-08
-1970-01-09
-1970-01-10
-1970-01-11
 1970-01-12
-1970-01-13
 1970-01-14
-1970-01-15
 1970-01-16
-1970-01-17
-1970-01-18
-1970-01-19
 1970-01-20
-1970-01-21
-1970-01-22
-1970-01-23
-1970-01-24
-1970-01-25
-1970-01-26
-1970-01-27
 1970-01-28
-1970-02-01
 1970-02-02
-1970-02-03
-1970-02-04
-1970-02-05
-1970-02-06
-1970-02-07
 1970-02-08
-1970-02-09
-1970-02-10
-1970-02-11
-1970-02-12
-1970-02-13
-1970-02-14
+1970-02-26
+1970-03-02
+1970-03-08
+1970-03-26
+1970-01-05
+1970-01-21
+1970-01-25
+1970-02-01
 1970-02-15
-1970-02-16
 1970-02-17
-1970-02-18
 1970-02-19
+1970-02-27
+1970-03-01
+1970-03-15
+1970-03-17
+1970-03-19
+1970-03-27
+1970-01-08
+1970-01-18
+1970-01-24
+1970-02-10
+1970-02-14
+1970-02-16
 1970-02-20
-1970-02-21
 1970-02-22
-1970-02-23
-1970-02-24
+1970-03-10
+1970-03-14
+1970-03-16
+1970-03-20
+1970-03-22
+1970-03-28
+1970-01-01
+1970-01-09
+1970-01-13
+1970-01-19
+1970-01-27
+1970-02-09
+1970-02-21
 1970-02-25
-1970-02-26
-1970-02-27
+1970-03-09
+1970-03-21
+1970-03-25
+1970-01-02
+1970-01-06
+1970-01-10
+1970-01-22
+1970-01-26
+1970-02-04
+1970-02-06
+1970-02-12
+1970-02-18
+1970-02-24
 1970-02-28
-1970-03-01
-1970-03-02
-1970-03-03
 1970-03-04
-1970-03-05
 1970-03-06
+1970-03-12
+1970-03-18
+1970-03-24
+1970-01-03
+1970-01-07
+1970-01-11
+1970-01-15
+1970-01-17
+1970-01-23
+1970-02-03
+1970-02-05
+1970-02-07
+1970-02-11
+1970-02-13
+1970-02-23
+1970-03-03
+1970-03-05
 1970-03-07
-1970-03-08
-1970-03-09
-1970-03-10
 1970-03-11
-1970-03-12
 1970-03-13
-1970-03-14
-1970-03-15
-1970-03-16
-1970-03-17
-1970-03-18
-1970-03-19
-1970-03-20
-1970-03-21
-1970-03-22
 1970-03-23
-1970-03-24
-1970-03-25
-1970-03-26
-1970-03-27
-1970-03-28
 drop table t2;
 create table t3 (a date not null, primary key(a)) engine='InnoDB' 
 partition by range (month(a)) subpartition by key (a)
@@ -545,18 +545,18 @@ insert into t1 values ('21:21:21'), ('12
 select * from t1;
 a
 03:03:03
+23:59:00
 12:10:30
 21:21:21
-23:59:00
 select * from t1 where a=030303;
 a
 03:03:03
 delete from t1 where a=030303;
 select * from t1;
 a
+23:59:00
 12:10:30
 21:21:21
-23:59:00
 drop table t1;
 create table t2 (a time not null, primary key(a)) engine='InnoDB' 
 partition by key (a) partitions 12;
@@ -572,9 +572,9 @@ insert into t2 values ('0:1:1'), ('10:11
 select * from t2;
 a
 00:01:01
-10:11:12
 13:14:15
 14:15:16
+10:11:12
 select * from t2 where a='13:14:15';
 a
 13:14:15
@@ -582,8 +582,8 @@ delete from t2 where a='13:14:15';
 select * from t2;
 a
 00:01:01
-10:11:12
 14:15:16
+10:11:12
 delete from t2;
 59 inserts;
 insert into t2 values (000100+59);
@@ -651,64 +651,64 @@ count(*)
 select * from t2;
 a
 00:01:01
-00:01:02
-00:01:03
-00:01:04
-00:01:05
-00:01:06
-00:01:07
-00:01:08
-00:01:09
-00:01:10
-00:01:11
-00:01:12
 00:01:13
-00:01:14
-00:01:15
+00:01:29
+00:01:41
+00:01:53
+00:01:04
 00:01:16
-00:01:17
+00:01:32
+00:01:44
+00:01:56
+00:01:03
+00:01:15
+00:01:31
+00:01:43
+00:01:55
+00:01:06
 00:01:18
-00:01:19
+00:01:34
+00:01:46
+00:01:58
+00:01:05
+00:01:17
+00:01:33
+00:01:45
+00:01:57
+00:01:08
 00:01:20
-00:01:21
-00:01:22
-00:01:23
 00:01:24
-00:01:25
-00:01:26
-00:01:27
-00:01:28
-00:01:29
-00:01:30
-00:01:31
-00:01:32
-00:01:33
-00:01:34
-00:01:35
 00:01:36
-00:01:37
-00:01:38
-00:01:39
-00:01:40
-00:01:41
-00:01:42
-00:01:43
-00:01:44
-00:01:45
-00:01:46
-00:01:47
 00:01:48
-00:01:49
+00:01:07
+00:01:19
+00:01:23
+00:01:35
+00:01:47
+00:01:59
+00:01:10
+00:01:22
+00:01:26
+00:01:38
 00:01:50
-00:01:51
+00:01:09
+00:01:21
+00:01:25
+00:01:37
+00:01:49
+00:01:12
+00:01:28
+00:01:40
 00:01:52
-00:01:53
+00:01:11
+00:01:27
+00:01:39
+00:01:51
+00:01:02
+00:01:14
+00:01:30
+00:01:42
 00:01:54
-00:01:55
-00:01:56
-00:01:57
-00:01:58
-00:01:59
 drop table t2;
 create table t3 (a time not null, primary key(a)) engine='InnoDB' 
 partition by range (second(a)) subpartition by key (a)
@@ -796,36 +796,41 @@ count(*)
 59
 select * from t3;
 a
-10:00:01
 10:00:02
+10:00:05
+10:00:01
 10:00:03
 10:00:04
-10:00:05
-10:00:06
-10:00:07
 10:00:08
 10:00:09
+10:00:14
+10:00:06
+10:00:07
 10:00:10
 10:00:11
 10:00:12
 10:00:13
-10:00:14
 10:00:15
 10:00:16
-10:00:17
 10:00:18
 10:00:19
+10:00:25
+10:00:30
 10:00:20
 10:00:21
 10:00:22
+10:00:27
+10:00:29
+10:00:17
 10:00:23
 10:00:24
-10:00:25
 10:00:26
-10:00:27
 10:00:28
-10:00:29
-10:00:30
+10:00:39
+10:00:40
+10:00:41
+10:00:42
+10:00:43
 10:00:31
 10:00:32
 10:00:33
@@ -834,27 +839,22 @@ a
 10:00:36
 10:00:37
 10:00:38
-10:00:39
-10:00:40
-10:00:41
-10:00:42
-10:00:43
 10:00:44
 10:00:45
+10:00:54
 10:00:46
 10:00:47
-10:00:48
 10:00:49
 10:00:50
 10:00:51
 10:00:52
 10:00:53
-10:00:54
 10:00:55
-10:00:56
 10:00:57
 10:00:58
 10:00:59
+10:00:48
+10:00:56
 drop table t3;
 create table t4 (a time not null, primary key(a)) engine='InnoDB' 
 partition by list (second(a)) subpartition by key (a)
@@ -942,36 +942,41 @@ count(*)
 59
 select * from t4;
 a
-10:00:01
 10:00:02
+10:00:05
+10:00:01
 10:00:03
 10:00:04
-10:00:05
-10:00:06
-10:00:07
 10:00:08
 10:00:09
+10:00:14
+10:00:06
+10:00:07
 10:00:10
 10:00:11
 10:00:12
 10:00:13
-10:00:14
 10:00:15
 10:00:16
-10:00:17
 10:00:18
 10:00:19
+10:00:25
+10:00:30
 10:00:20
 10:00:21
 10:00:22
+10:00:27
+10:00:29
+10:00:17
 10:00:23
 10:00:24
-10:00:25
 10:00:26
-10:00:27
 10:00:28
-10:00:29
-10:00:30
+10:00:39
+10:00:40
+10:00:41
+10:00:42
+10:00:43
 10:00:31
 10:00:32
 10:00:33
@@ -980,27 +985,22 @@ a
 10:00:36
 10:00:37
 10:00:38
-10:00:39
-10:00:40
-10:00:41
-10:00:42
-10:00:43
 10:00:44
 10:00:45
+10:00:54
 10:00:46
 10:00:47
-10:00:48
 10:00:49
 10:00:50
 10:00:51
 10:00:52
 10:00:53
-10:00:54
 10:00:55
-10:00:56
 10:00:57
 10:00:58
 10:00:59
+10:00:48
+10:00:56
 drop table t4;
 create table t1 (a datetime not null, primary key(a)) engine='InnoDB' 
 partition by key (a) (
@@ -1022,19 +1022,19 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975-01-01 21:21:21'), ('2020-12-31 12:10:30'), ('1980-10-14 03:03'), ('2000-06-15 23:59');
 select * from t1;
 a
+2020-12-31 12:10:30
+2000-06-15 23:59:00
 1975-01-01 21:21:21
 1980-10-14 03:03:00
-2000-06-15 23:59:00
-2020-12-31 12:10:30
 select * from t1 where a=19801014030300;
 a
 1980-10-14 03:03:00
 delete from t1 where a=19801014030300;
 select * from t1;
 a
-1975-01-01 21:21:21
-2000-06-15 23:59:00
 2020-12-31 12:10:30
+2000-06-15 23:59:00
+1975-01-01 21:21:21
 drop table t1;
 create table t2 (a datetime not null, primary key(a)) engine='InnoDB' 
 partition by key (a) partitions 12;
@@ -1049,19 +1049,19 @@ PARTITIONS 12 */
 insert into t2 values ('1975-01-01 0:1:1'), ('2020-12-31 10:11:12'), ('1980-10-14 13:14:15'), ('2000-06-15 14:15:16');
 select * from t2;
 a
-1975-01-01 00:01:01
-1980-10-14 13:14:15
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1980-10-14 13:14:15
+1975-01-01 00:01:01
 select * from t2 where a='1980-10-14 13:14:15';
 a
 1980-10-14 13:14:15
 delete from t2 where a='1980-10-14 13:14:15';
 select * from t2;
 a
-1975-01-01 00:01:01
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1975-01-01 00:01:01
 delete from t2;
 59 inserts;
 insert into t2 values (19700101000000+59);
@@ -1129,64 +1129,64 @@ count(*)
 select * from t2;
 a
 1970-01-01 00:00:01
-1970-01-01 00:00:02
-1970-01-01 00:00:03
 1970-01-01 00:00:04
+1970-01-01 00:00:09
+1970-01-01 00:00:14
+1970-01-01 00:00:20
+1970-01-01 00:00:21
+1970-01-01 00:00:22
+1970-01-01 00:00:26
+1970-01-01 00:00:31
+1970-01-01 00:00:33
+1970-01-01 00:00:36
+1970-01-01 00:00:41
+1970-01-01 00:00:46
+1970-01-01 00:00:52
+1970-01-01 00:00:53
+1970-01-01 00:00:54
+1970-01-01 00:00:58
+1970-01-01 00:00:59
+1970-01-01 00:00:02
 1970-01-01 00:00:05
-1970-01-01 00:00:06
 1970-01-01 00:00:07
-1970-01-01 00:00:08
-1970-01-01 00:00:09
 1970-01-01 00:00:10
 1970-01-01 00:00:11
-1970-01-01 00:00:12
 1970-01-01 00:00:13
-1970-01-01 00:00:14
-1970-01-01 00:00:15
 1970-01-01 00:00:16
 1970-01-01 00:00:17
-1970-01-01 00:00:18
 1970-01-01 00:00:19
-1970-01-01 00:00:20
-1970-01-01 00:00:21
-1970-01-01 00:00:22
 1970-01-01 00:00:23
 1970-01-01 00:00:24
-1970-01-01 00:00:25
-1970-01-01 00:00:26
-1970-01-01 00:00:27
-1970-01-01 00:00:28
-1970-01-01 00:00:29
 1970-01-01 00:00:30
-1970-01-01 00:00:31
 1970-01-01 00:00:32
-1970-01-01 00:00:33
 1970-01-01 00:00:34
-1970-01-01 00:00:35
-1970-01-01 00:00:36
 1970-01-01 00:00:37
-1970-01-01 00:00:38
 1970-01-01 00:00:39
-1970-01-01 00:00:40
-1970-01-01 00:00:41
 1970-01-01 00:00:42
 1970-01-01 00:00:43
-1970-01-01 00:00:44
 1970-01-01 00:00:45
-1970-01-01 00:00:46
-1970-01-01 00:00:47
 1970-01-01 00:00:48
 1970-01-01 00:00:49
-1970-01-01 00:00:50
 1970-01-01 00:00:51
-1970-01-01 00:00:52
-1970-01-01 00:00:53
-1970-01-01 00:00:54
 1970-01-01 00:00:55
 1970-01-01 00:00:56
+1970-01-01 00:00:03
+1970-01-01 00:00:06
+1970-01-01 00:00:08
+1970-01-01 00:00:12
+1970-01-01 00:00:15
+1970-01-01 00:00:18
+1970-01-01 00:00:25
+1970-01-01 00:00:27
+1970-01-01 00:00:28
+1970-01-01 00:00:29
+1970-01-01 00:00:35
+1970-01-01 00:00:38
+1970-01-01 00:00:40
+1970-01-01 00:00:44
+1970-01-01 00:00:47
+1970-01-01 00:00:50
 1970-01-01 00:00:57
-1970-01-01 00:00:58
-1970-01-01 00:00:59
 drop table t2;
 create table t3 (a datetime not null, primary key(a)) engine='InnoDB' 
 partition by range (month(a)) subpartition by key (a)
@@ -1228,16 +1228,16 @@ count(*)
 select * from t3;
 a
 1970-01-01 00:00:00
-1970-02-01 00:00:00
 1970-03-01 00:00:00
-1970-04-01 00:00:00
-1970-05-01 00:00:00
+1970-02-01 00:00:00
 1970-06-01 00:00:00
+1970-05-01 00:00:00
+1970-04-01 00:00:00
 1970-07-01 00:00:00
 1970-08-01 00:00:00
 1970-09-01 00:00:00
-1970-10-01 00:00:00
 1970-11-01 00:00:00
+1970-10-01 00:00:00
 1970-12-01 00:00:00
 drop table t3;
 create table t4 (a datetime not null, primary key(a)) engine='InnoDB' 
@@ -1280,16 +1280,16 @@ count(*)
 select * from t4;
 a
 1970-01-01 00:00:00
-1970-02-01 00:00:00
 1970-03-01 00:00:00
-1970-04-01 00:00:00
-1970-05-01 00:00:00
+1970-02-01 00:00:00
 1970-06-01 00:00:00
+1970-05-01 00:00:00
+1970-04-01 00:00:00
 1970-07-01 00:00:00
 1970-08-01 00:00:00
 1970-09-01 00:00:00
-1970-10-01 00:00:00
 1970-11-01 00:00:00
+1970-10-01 00:00:00
 1970-12-01 00:00:00
 drop table t4;
 create table t1 (a year not null, primary key(a)) engine='InnoDB' 
@@ -1312,19 +1312,19 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975'), (2020), ('1980'), ('2000');
 select * from t1;
 a
-1975
 1980
 2000
 2020
+1975
 select * from t1 where a=1980;
 a
 1980
 delete from t1 where a=1980;
 select * from t1;
 a
-1975
 2000
 2020
+1975
 drop table t1;
 create table t2 (a year not null, primary key(a)) engine='InnoDB' 
 partition by key (a) partitions 12;
@@ -1339,19 +1339,19 @@ PARTITIONS 12 */
 insert into t2 values ('1975'), ('2020'), ('1980'), ('2000');
 select * from t2;
 a
+2020
 1975
 1980
 2000
-2020
 select * from t2 where a='1980';
 a
 1980
 delete from t2 where a='1980';
 select * from t2;
 a
+2020
 1975
 2000
-2020
 delete from t2;
 255 inserts;
 Warnings:
@@ -1361,259 +1361,259 @@ count(*)
 255
 select * from t2;
 a
-0000
-1902
-1903
-1904
-1905
-1906
-1907
-1908
 1909
-1910
-1911
-1912
-1913
-1914
-1915
-1916
-1917
-1918
-1919
-1920
 1921
-1922
-1923
-1924
-1925
-1926
-1927
+1933
+1945
+1957
+1969
+1981
+1993
+2001
+2013
+2029
+2041
+2053
+2065
+2077
+2089
+2100
+2101
+2102
+2103
+2114
+2132
+2133
+2134
+2135
+2146
+1904
+1916
 1928
-1929
-1930
-1931
 1932
-1933
-1934
-1935
-1936
-1937
-1938
-1939
 1940
-1941
-1942
-1943
-1944
-1945
-1946
-1947
-1948
-1949
-1950
-1951
 1952
-1953
-1954
-1955
-1956
-1957
-1958
-1959
-1960
-1961
-1962
-1963
 1964
-1965
-1966
-1967
-1968
-1969
-1970
-1971
-1972
-1973
-1974
-1975
 1976
-1977
-1978
-1979
-1980
-1981
-1982
-1983
-1984
-1985
-1986
-1987
 1988
-1989
-1990
+2008
+2020
+2024
+2036
+2048
+2060
+2072
+2084
+1907
+1919
+1931
+1943
+1955
+1967
+1979
 1991
-1992
-1993
-1994
-1995
-1996
-1997
-1998
 1999
-2000
-2001
-2002
-2003
-2004
-2005
-2006
-2007
-2008
-2009
-2010
 2011
-2012
-2013
-2014
-2015
-2016
-2017
+2027
+2039
+2051
+2063
+2075
+2087
+2097
+2099
+2110
+2111
+2112
+2113
+2123
+2129
+2131
+2142
+2143
+2144
+2145
+2147
+1902
+1914
+1926
+1938
+1950
+1962
+1974
+1986
+2006
 2018
-2019
-2020
+2034
+2046
+2058
+2070
+2082
+1905
+1917
+1929
+1941
+1953
+1965
+1977
+1989
+1997
+2009
 2021
-2022
-2023
-2024
 2025
-2026
-2027
-2028
-2029
-2030
-2031
-2032
-2033
-2034
-2035
-2036
 2037
-2038
-2039
-2040
-2041
-2042
-2043
-2044
-2045
-2046
-2047
-2048
 2049
-2050
-2051
-2052
-2053
-2054
-2055
-2056
-2057
-2058
-2059
-2060
 2061
-2062
-2063
-2064
-2065
-2066
-2067
-2068
-2069
-2070
-2071
-2072
 2073
-2074
-2075
-2076
-2077
-2078
-2079
-2080
-2081
-2082
-2083
-2084
 2085
-2086
-2087
-2088
-2089
-2090
-2091
 2092
 2093
 2094
 2095
-2096
-2097
-2098
-2099
-2100
-2101
-2102
-2103
+2120
+2121
+2124
+2125
+2126
+2127
+2152
+2153
+0000
+1912
+1924
+1936
+1948
+1960
+1972
+1984
+1996
+2004
+2016
+2032
+2044
+2056
+2068
+2080
+2116
+2148
+1903
+1915
+1927
+1939
+1951
+1963
+1975
+1987
+2007
+2019
+2023
+2035
+2047
+2059
+2071
+2083
+2155
+1910
+1922
+1934
+1946
+1958
+1970
+1982
+1994
+2002
+2014
+2030
+2042
+2054
+2066
+2078
+2090
+1913
+1925
+1937
+1949
+1961
+1973
+1985
+2005
+2017
+2033
+2045
+2057
+2069
+2081
 2104
 2105
 2106
 2107
-2108
-2109
-2110
-2111
-2112
-2113
-2114
-2115
-2116
 2117
 2118
 2119
-2120
-2121
-2122
-2123
-2124
-2125
-2126
-2127
-2128
-2129
-2130
-2131
-2132
-2133
-2134
-2135
 2136
 2137
 2138
 2139
-2140
-2141
-2142
-2143
-2144
-2145
-2146
-2147
-2148
 2149
 2150
 2151
-2152
-2153
+1908
+1920
+1944
+1956
+1968
+1980
+1992
+2000
+2012
+2028
+2040
+2052
+2064
+2076
+2088
+2096
+2098
+2108
+2128
+2130
+2140
+1911
+1923
+1935
+1947
+1959
+1971
+1983
+1995
+2003
+2015
+2031
+2043
+2055
+2067
+2079
+2091
+2115
+1906
+1918
+1930
+1942
+1954
+1966
+1978
+1990
+1998
+2010
+2022
+2026
+2038
+2050
+2062
+2074
+2086
+2109
+2122
+2141
 2154
-2155
 drop table t2;

=== modified file 'mysql-test/suite/parts/r/partition_datetime_myisam.result'
--- a/mysql-test/suite/parts/r/partition_datetime_myisam.result	2009-12-14 17:27:43 +0000
+++ b/mysql-test/suite/parts/r/partition_datetime_myisam.result	2011-03-24 12:46:19 +0000
@@ -18,9 +18,9 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975-01-01 21:21:21'), ('2020-12-31 12:10:30'), ('1980-10-14 03:03'), ('2000-06-15 23:59');
 select * from t1;
 a
-1975-01-01 21:21:21
-1980-10-14 03:03:00
 2000-06-15 23:59:00
+1980-10-14 03:03:00
+1975-01-01 21:21:21
 2020-12-31 12:10:30
 select * from t1 where a=19801014030300;
 a
@@ -28,8 +28,8 @@ a
 delete from t1 where a=19801014030300;
 select * from t1;
 a
-1975-01-01 21:21:21
 2000-06-15 23:59:00
+1975-01-01 21:21:21
 2020-12-31 12:10:30
 drop table t1;
 create table t2 (a timestamp not null, primary key(a)) engine='MyISAM' 
@@ -45,19 +45,19 @@ PARTITIONS 12 */
 insert into t2 values ('1975-01-01 0:1:1'), ('2020-12-31 10:11:12'), ('1980-10-14 13:14:15'), ('2000-06-15 14:15:16');
 select * from t2;
 a
-1975-01-01 00:01:01
 1980-10-14 13:14:15
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1975-01-01 00:01:01
 select * from t2 where a='1980-10-14 13:14:15';
 a
 1980-10-14 13:14:15
 delete from t2 where a='1980-10-14 13:14:15';
 select * from t2;
 a
-1975-01-01 00:01:01
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1975-01-01 00:01:01
 delete from t2;
 59 inserts;
 insert into t2 values (19710101000000+59);
@@ -125,62 +125,62 @@ count(*)
 select * from t2;
 a
 1971-01-01 00:00:01
-1971-01-01 00:00:02
-1971-01-01 00:00:03
 1971-01-01 00:00:04
-1971-01-01 00:00:05
 1971-01-01 00:00:06
-1971-01-01 00:00:07
-1971-01-01 00:00:08
-1971-01-01 00:00:09
-1971-01-01 00:00:10
-1971-01-01 00:00:11
-1971-01-01 00:00:12
-1971-01-01 00:00:13
 1971-01-01 00:00:14
-1971-01-01 00:00:15
 1971-01-01 00:00:16
 1971-01-01 00:00:17
 1971-01-01 00:00:18
-1971-01-01 00:00:19
-1971-01-01 00:00:20
-1971-01-01 00:00:21
 1971-01-01 00:00:22
 1971-01-01 00:00:23
-1971-01-01 00:00:24
-1971-01-01 00:00:25
 1971-01-01 00:00:26
 1971-01-01 00:00:27
-1971-01-01 00:00:28
 1971-01-01 00:00:29
 1971-01-01 00:00:30
-1971-01-01 00:00:31
-1971-01-01 00:00:32
 1971-01-01 00:00:33
-1971-01-01 00:00:34
-1971-01-01 00:00:35
 1971-01-01 00:00:36
-1971-01-01 00:00:37
 1971-01-01 00:00:38
+1971-01-01 00:00:44
+1971-01-01 00:00:46
+1971-01-01 00:00:53
+1971-01-01 00:00:07
+1971-01-01 00:00:09
+1971-01-01 00:00:10
+1971-01-01 00:00:12
+1971-01-01 00:00:15
+1971-01-01 00:00:19
+1971-01-01 00:00:24
+1971-01-01 00:00:28
 1971-01-01 00:00:39
-1971-01-01 00:00:40
 1971-01-01 00:00:41
 1971-01-01 00:00:42
 1971-01-01 00:00:43
-1971-01-01 00:00:44
-1971-01-01 00:00:45
-1971-01-01 00:00:46
 1971-01-01 00:00:47
 1971-01-01 00:00:48
 1971-01-01 00:00:49
-1971-01-01 00:00:50
-1971-01-01 00:00:51
 1971-01-01 00:00:52
-1971-01-01 00:00:53
-1971-01-01 00:00:54
 1971-01-01 00:00:55
 1971-01-01 00:00:56
 1971-01-01 00:00:57
+1971-01-01 00:00:02
+1971-01-01 00:00:03
+1971-01-01 00:00:05
+1971-01-01 00:00:08
+1971-01-01 00:00:11
+1971-01-01 00:00:13
+1971-01-01 00:00:20
+1971-01-01 00:00:21
+1971-01-01 00:00:25
+1971-01-01 00:00:31
+1971-01-01 00:00:32
+1971-01-01 00:00:34
+1971-01-01 00:00:35
+1971-01-01 00:00:37
+1971-01-01 00:00:40
+1971-01-01 00:00:45
+1971-01-01 00:00:50
+1971-01-01 00:00:51
+1971-01-01 00:00:54
 1971-01-01 00:00:58
 1971-01-01 00:00:59
 drop table t2;
@@ -204,19 +204,19 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975-01-01'), ('2020-12-31'), ('1980-10-14'), ('2000-06-15');
 select * from t1;
 a
-1975-01-01
 1980-10-14
-2000-06-15
 2020-12-31
+1975-01-01
+2000-06-15
 select * from t1 where a=19801014;
 a
 1980-10-14
 delete from t1 where a=19801014;
 select * from t1;
 a
+2020-12-31
 1975-01-01
 2000-06-15
-2020-12-31
 drop table t1;
 create table t2 (a date not null, primary key(a)) engine='MyISAM' 
 partition by key (a) partitions 12;
@@ -231,10 +231,10 @@ PARTITIONS 12 */
 insert into t2 values ('1975-01-01'), ('2020-12-31'), ('1980-10-14'), ('2000-06-15');
 select * from t2;
 a
-1975-01-01
 1980-10-14
-2000-06-15
+1975-01-01
 2020-12-31
+2000-06-15
 select * from t2 where a='1980-10-14';
 a
 1980-10-14
@@ -242,8 +242,8 @@ delete from t2 where a='1980-10-14';
 select * from t2;
 a
 1975-01-01
-2000-06-15
 2020-12-31
+2000-06-15
 delete from t2;
 28 inserts;
 insert into t2 values (19700101+28-1);
@@ -335,90 +335,90 @@ count(*)
 84
 select * from t2;
 a
-1970-01-01
-1970-01-02
-1970-01-03
 1970-01-04
-1970-01-05
-1970-01-06
-1970-01-07
-1970-01-08
-1970-01-09
-1970-01-10
-1970-01-11
 1970-01-12
-1970-01-13
 1970-01-14
-1970-01-15
 1970-01-16
-1970-01-17
-1970-01-18
-1970-01-19
 1970-01-20
-1970-01-21
-1970-01-22
-1970-01-23
-1970-01-24
-1970-01-25
-1970-01-26
-1970-01-27
 1970-01-28
-1970-02-01
 1970-02-02
-1970-02-03
-1970-02-04
-1970-02-05
-1970-02-06
-1970-02-07
 1970-02-08
-1970-02-09
-1970-02-10
-1970-02-11
-1970-02-12
-1970-02-13
-1970-02-14
+1970-02-26
+1970-03-02
+1970-03-08
+1970-03-26
+1970-01-05
+1970-01-21
+1970-01-25
+1970-02-01
 1970-02-15
-1970-02-16
 1970-02-17
-1970-02-18
 1970-02-19
+1970-02-27
+1970-03-01
+1970-03-15
+1970-03-17
+1970-03-19
+1970-03-27
+1970-01-08
+1970-01-18
+1970-01-24
+1970-02-10
+1970-02-14
+1970-02-16
 1970-02-20
-1970-02-21
 1970-02-22
-1970-02-23
-1970-02-24
+1970-03-10
+1970-03-14
+1970-03-16
+1970-03-20
+1970-03-22
+1970-03-28
+1970-01-01
+1970-01-09
+1970-01-13
+1970-01-19
+1970-01-27
+1970-02-09
+1970-02-21
 1970-02-25
-1970-02-26
-1970-02-27
+1970-03-09
+1970-03-21
+1970-03-25
+1970-01-02
+1970-01-06
+1970-01-10
+1970-01-22
+1970-01-26
+1970-02-04
+1970-02-06
+1970-02-12
+1970-02-18
+1970-02-24
 1970-02-28
-1970-03-01
-1970-03-02
-1970-03-03
 1970-03-04
-1970-03-05
 1970-03-06
+1970-03-12
+1970-03-18
+1970-03-24
+1970-01-03
+1970-01-07
+1970-01-11
+1970-01-15
+1970-01-17
+1970-01-23
+1970-02-03
+1970-02-05
+1970-02-07
+1970-02-11
+1970-02-13
+1970-02-23
+1970-03-03
+1970-03-05
 1970-03-07
-1970-03-08
-1970-03-09
-1970-03-10
 1970-03-11
-1970-03-12
 1970-03-13
-1970-03-14
-1970-03-15
-1970-03-16
-1970-03-17
-1970-03-18
-1970-03-19
-1970-03-20
-1970-03-21
-1970-03-22
 1970-03-23
-1970-03-24
-1970-03-25
-1970-03-26
-1970-03-27
-1970-03-28
 drop table t2;
 create table t3 (a date not null, primary key(a)) engine='MyISAM' 
 partition by range (month(a)) subpartition by key (a)
@@ -545,18 +545,18 @@ insert into t1 values ('21:21:21'), ('12
 select * from t1;
 a
 03:03:03
+23:59:00
 12:10:30
 21:21:21
-23:59:00
 select * from t1 where a=030303;
 a
 03:03:03
 delete from t1 where a=030303;
 select * from t1;
 a
+23:59:00
 12:10:30
 21:21:21
-23:59:00
 drop table t1;
 create table t2 (a time not null, primary key(a)) engine='MyISAM' 
 partition by key (a) partitions 12;
@@ -572,9 +572,9 @@ insert into t2 values ('0:1:1'), ('10:11
 select * from t2;
 a
 00:01:01
-10:11:12
 13:14:15
 14:15:16
+10:11:12
 select * from t2 where a='13:14:15';
 a
 13:14:15
@@ -582,8 +582,8 @@ delete from t2 where a='13:14:15';
 select * from t2;
 a
 00:01:01
-10:11:12
 14:15:16
+10:11:12
 delete from t2;
 59 inserts;
 insert into t2 values (000100+59);
@@ -651,64 +651,64 @@ count(*)
 select * from t2;
 a
 00:01:01
-00:01:02
-00:01:03
-00:01:04
-00:01:05
-00:01:06
-00:01:07
-00:01:08
-00:01:09
-00:01:10
-00:01:11
-00:01:12
 00:01:13
-00:01:14
-00:01:15
+00:01:29
+00:01:41
+00:01:53
+00:01:04
 00:01:16
-00:01:17
+00:01:32
+00:01:44
+00:01:56
+00:01:03
+00:01:15
+00:01:31
+00:01:43
+00:01:55
+00:01:06
 00:01:18
-00:01:19
+00:01:34
+00:01:46
+00:01:58
+00:01:05
+00:01:17
+00:01:33
+00:01:45
+00:01:57
+00:01:08
 00:01:20
-00:01:21
-00:01:22
-00:01:23
 00:01:24
-00:01:25
-00:01:26
-00:01:27
-00:01:28
-00:01:29
-00:01:30
-00:01:31
-00:01:32
-00:01:33
-00:01:34
-00:01:35
 00:01:36
-00:01:37
-00:01:38
-00:01:39
-00:01:40
-00:01:41
-00:01:42
-00:01:43
-00:01:44
-00:01:45
-00:01:46
-00:01:47
 00:01:48
-00:01:49
+00:01:07
+00:01:19
+00:01:23
+00:01:35
+00:01:47
+00:01:59
+00:01:10
+00:01:22
+00:01:26
+00:01:38
 00:01:50
-00:01:51
+00:01:09
+00:01:21
+00:01:25
+00:01:37
+00:01:49
+00:01:12
+00:01:28
+00:01:40
 00:01:52
-00:01:53
+00:01:11
+00:01:27
+00:01:39
+00:01:51
+00:01:02
+00:01:14
+00:01:30
+00:01:42
 00:01:54
-00:01:55
-00:01:56
-00:01:57
-00:01:58
-00:01:59
 drop table t2;
 create table t3 (a time not null, primary key(a)) engine='MyISAM' 
 partition by range (second(a)) subpartition by key (a)
@@ -796,36 +796,41 @@ count(*)
 59
 select * from t3;
 a
-10:00:01
 10:00:02
+10:00:05
+10:00:01
 10:00:03
 10:00:04
-10:00:05
-10:00:06
-10:00:07
 10:00:08
 10:00:09
+10:00:14
+10:00:06
+10:00:07
 10:00:10
 10:00:11
 10:00:12
 10:00:13
-10:00:14
 10:00:15
 10:00:16
-10:00:17
 10:00:18
 10:00:19
+10:00:25
+10:00:30
 10:00:20
 10:00:21
 10:00:22
+10:00:27
+10:00:29
+10:00:17
 10:00:23
 10:00:24
-10:00:25
 10:00:26
-10:00:27
 10:00:28
-10:00:29
-10:00:30
+10:00:39
+10:00:40
+10:00:41
+10:00:42
+10:00:43
 10:00:31
 10:00:32
 10:00:33
@@ -834,27 +839,22 @@ a
 10:00:36
 10:00:37
 10:00:38
-10:00:39
-10:00:40
-10:00:41
-10:00:42
-10:00:43
 10:00:44
 10:00:45
+10:00:54
 10:00:46
 10:00:47
-10:00:48
 10:00:49
 10:00:50
 10:00:51
 10:00:52
 10:00:53
-10:00:54
 10:00:55
-10:00:56
 10:00:57
 10:00:58
 10:00:59
+10:00:48
+10:00:56
 drop table t3;
 create table t4 (a time not null, primary key(a)) engine='MyISAM' 
 partition by list (second(a)) subpartition by key (a)
@@ -942,36 +942,41 @@ count(*)
 59
 select * from t4;
 a
-10:00:01
 10:00:02
+10:00:05
+10:00:01
 10:00:03
 10:00:04
-10:00:05
-10:00:06
-10:00:07
 10:00:08
 10:00:09
+10:00:14
+10:00:06
+10:00:07
 10:00:10
 10:00:11
 10:00:12
 10:00:13
-10:00:14
 10:00:15
 10:00:16
-10:00:17
 10:00:18
 10:00:19
+10:00:25
+10:00:30
 10:00:20
 10:00:21
 10:00:22
+10:00:27
+10:00:29
+10:00:17
 10:00:23
 10:00:24
-10:00:25
 10:00:26
-10:00:27
 10:00:28
-10:00:29
-10:00:30
+10:00:39
+10:00:40
+10:00:41
+10:00:42
+10:00:43
 10:00:31
 10:00:32
 10:00:33
@@ -980,27 +985,22 @@ a
 10:00:36
 10:00:37
 10:00:38
-10:00:39
-10:00:40
-10:00:41
-10:00:42
-10:00:43
 10:00:44
 10:00:45
+10:00:54
 10:00:46
 10:00:47
-10:00:48
 10:00:49
 10:00:50
 10:00:51
 10:00:52
 10:00:53
-10:00:54
 10:00:55
-10:00:56
 10:00:57
 10:00:58
 10:00:59
+10:00:48
+10:00:56
 drop table t4;
 create table t1 (a datetime not null, primary key(a)) engine='MyISAM' 
 partition by key (a) (
@@ -1022,19 +1022,19 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975-01-01 21:21:21'), ('2020-12-31 12:10:30'), ('1980-10-14 03:03'), ('2000-06-15 23:59');
 select * from t1;
 a
+2020-12-31 12:10:30
+2000-06-15 23:59:00
 1975-01-01 21:21:21
 1980-10-14 03:03:00
-2000-06-15 23:59:00
-2020-12-31 12:10:30
 select * from t1 where a=19801014030300;
 a
 1980-10-14 03:03:00
 delete from t1 where a=19801014030300;
 select * from t1;
 a
-1975-01-01 21:21:21
-2000-06-15 23:59:00
 2020-12-31 12:10:30
+2000-06-15 23:59:00
+1975-01-01 21:21:21
 drop table t1;
 create table t2 (a datetime not null, primary key(a)) engine='MyISAM' 
 partition by key (a) partitions 12;
@@ -1049,19 +1049,19 @@ PARTITIONS 12 */
 insert into t2 values ('1975-01-01 0:1:1'), ('2020-12-31 10:11:12'), ('1980-10-14 13:14:15'), ('2000-06-15 14:15:16');
 select * from t2;
 a
-1975-01-01 00:01:01
-1980-10-14 13:14:15
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1980-10-14 13:14:15
+1975-01-01 00:01:01
 select * from t2 where a='1980-10-14 13:14:15';
 a
 1980-10-14 13:14:15
 delete from t2 where a='1980-10-14 13:14:15';
 select * from t2;
 a
-1975-01-01 00:01:01
 2000-06-15 14:15:16
 2020-12-31 10:11:12
+1975-01-01 00:01:01
 delete from t2;
 59 inserts;
 insert into t2 values (19700101000000+59);
@@ -1129,64 +1129,64 @@ count(*)
 select * from t2;
 a
 1970-01-01 00:00:01
-1970-01-01 00:00:02
-1970-01-01 00:00:03
 1970-01-01 00:00:04
+1970-01-01 00:00:09
+1970-01-01 00:00:14
+1970-01-01 00:00:20
+1970-01-01 00:00:21
+1970-01-01 00:00:22
+1970-01-01 00:00:26
+1970-01-01 00:00:31
+1970-01-01 00:00:33
+1970-01-01 00:00:36
+1970-01-01 00:00:41
+1970-01-01 00:00:46
+1970-01-01 00:00:52
+1970-01-01 00:00:53
+1970-01-01 00:00:54
+1970-01-01 00:00:58
+1970-01-01 00:00:59
+1970-01-01 00:00:02
 1970-01-01 00:00:05
-1970-01-01 00:00:06
 1970-01-01 00:00:07
-1970-01-01 00:00:08
-1970-01-01 00:00:09
 1970-01-01 00:00:10
 1970-01-01 00:00:11
-1970-01-01 00:00:12
 1970-01-01 00:00:13
-1970-01-01 00:00:14
-1970-01-01 00:00:15
 1970-01-01 00:00:16
 1970-01-01 00:00:17
-1970-01-01 00:00:18
 1970-01-01 00:00:19
-1970-01-01 00:00:20
-1970-01-01 00:00:21
-1970-01-01 00:00:22
 1970-01-01 00:00:23
 1970-01-01 00:00:24
-1970-01-01 00:00:25
-1970-01-01 00:00:26
-1970-01-01 00:00:27
-1970-01-01 00:00:28
-1970-01-01 00:00:29
 1970-01-01 00:00:30
-1970-01-01 00:00:31
 1970-01-01 00:00:32
-1970-01-01 00:00:33
 1970-01-01 00:00:34
-1970-01-01 00:00:35
-1970-01-01 00:00:36
 1970-01-01 00:00:37
-1970-01-01 00:00:38
 1970-01-01 00:00:39
-1970-01-01 00:00:40
-1970-01-01 00:00:41
 1970-01-01 00:00:42
 1970-01-01 00:00:43
-1970-01-01 00:00:44
 1970-01-01 00:00:45
-1970-01-01 00:00:46
-1970-01-01 00:00:47
 1970-01-01 00:00:48
 1970-01-01 00:00:49
-1970-01-01 00:00:50
 1970-01-01 00:00:51
-1970-01-01 00:00:52
-1970-01-01 00:00:53
-1970-01-01 00:00:54
 1970-01-01 00:00:55
 1970-01-01 00:00:56
+1970-01-01 00:00:03
+1970-01-01 00:00:06
+1970-01-01 00:00:08
+1970-01-01 00:00:12
+1970-01-01 00:00:15
+1970-01-01 00:00:18
+1970-01-01 00:00:25
+1970-01-01 00:00:27
+1970-01-01 00:00:28
+1970-01-01 00:00:29
+1970-01-01 00:00:35
+1970-01-01 00:00:38
+1970-01-01 00:00:40
+1970-01-01 00:00:44
+1970-01-01 00:00:47
+1970-01-01 00:00:50
 1970-01-01 00:00:57
-1970-01-01 00:00:58
-1970-01-01 00:00:59
 drop table t2;
 create table t3 (a datetime not null, primary key(a)) engine='MyISAM' 
 partition by range (month(a)) subpartition by key (a)
@@ -1228,16 +1228,16 @@ count(*)
 select * from t3;
 a
 1970-01-01 00:00:00
-1970-02-01 00:00:00
 1970-03-01 00:00:00
-1970-04-01 00:00:00
-1970-05-01 00:00:00
+1970-02-01 00:00:00
 1970-06-01 00:00:00
+1970-05-01 00:00:00
+1970-04-01 00:00:00
 1970-07-01 00:00:00
 1970-08-01 00:00:00
 1970-09-01 00:00:00
-1970-10-01 00:00:00
 1970-11-01 00:00:00
+1970-10-01 00:00:00
 1970-12-01 00:00:00
 drop table t3;
 create table t4 (a datetime not null, primary key(a)) engine='MyISAM' 
@@ -1280,16 +1280,16 @@ count(*)
 select * from t4;
 a
 1970-01-01 00:00:00
-1970-02-01 00:00:00
 1970-03-01 00:00:00
-1970-04-01 00:00:00
-1970-05-01 00:00:00
+1970-02-01 00:00:00
 1970-06-01 00:00:00
+1970-05-01 00:00:00
+1970-04-01 00:00:00
 1970-07-01 00:00:00
 1970-08-01 00:00:00
 1970-09-01 00:00:00
-1970-10-01 00:00:00
 1970-11-01 00:00:00
+1970-10-01 00:00:00
 1970-12-01 00:00:00
 drop table t4;
 create table t1 (a year not null, primary key(a)) engine='MyISAM' 
@@ -1312,19 +1312,19 @@ t1	CREATE TABLE `t1` (
 insert into t1 values ('1975'), (2020), ('1980'), ('2000');
 select * from t1;
 a
-1975
 1980
 2000
 2020
+1975
 select * from t1 where a=1980;
 a
 1980
 delete from t1 where a=1980;
 select * from t1;
 a
-1975
 2000
 2020
+1975
 drop table t1;
 create table t2 (a year not null, primary key(a)) engine='MyISAM' 
 partition by key (a) partitions 12;
@@ -1339,19 +1339,19 @@ PARTITIONS 12 */
 insert into t2 values ('1975'), ('2020'), ('1980'), ('2000');
 select * from t2;
 a
+2020
 1975
 1980
 2000
-2020
 select * from t2 where a='1980';
 a
 1980
 delete from t2 where a='1980';
 select * from t2;
 a
+2020
 1975
 2000
-2020
 delete from t2;
 255 inserts;
 Warnings:
@@ -1361,259 +1361,259 @@ count(*)
 255
 select * from t2;
 a
-0000
-1902
-1903
-1904
-1905
-1906
-1907
-1908
 1909
-1910
-1911
-1912
-1913
-1914
-1915
-1916
-1917
-1918
-1919
-1920
 1921
-1922
-1923
-1924
-1925
-1926
-1927
+1933
+1945
+1957
+1969
+1981
+1993
+2001
+2013
+2029
+2041
+2053
+2065
+2077
+2089
+2100
+2101
+2102
+2103
+2114
+2132
+2133
+2134
+2135
+2146
+1904
+1916
 1928
-1929
-1930
-1931
 1932
-1933
-1934
-1935
-1936
-1937
-1938
-1939
 1940
-1941
-1942
-1943
-1944
-1945
-1946
-1947
-1948
-1949
-1950
-1951
 1952
-1953
-1954
-1955
-1956
-1957
-1958
-1959
-1960
-1961
-1962
-1963
 1964
-1965
-1966
-1967
-1968
-1969
-1970
-1971
-1972
-1973
-1974
-1975
 1976
-1977
-1978
-1979
-1980
-1981
-1982
-1983
-1984
-1985
-1986
-1987
 1988
-1989
-1990
+2008
+2020
+2024
+2036
+2048
+2060
+2072
+2084
+1907
+1919
+1931
+1943
+1955
+1967
+1979
 1991
-1992
-1993
-1994
-1995
-1996
-1997
-1998
 1999
-2000
-2001
-2002
-2003
-2004
-2005
-2006
-2007
-2008
-2009
-2010
 2011
-2012
-2013
-2014
-2015
-2016
-2017
+2027
+2039
+2051
+2063
+2075
+2087
+2097
+2099
+2110
+2111
+2112
+2113
+2123
+2129
+2131
+2142
+2143
+2144
+2145
+2147
+1902
+1914
+1926
+1938
+1950
+1962
+1974
+1986
+2006
 2018
-2019
-2020
+2034
+2046
+2058
+2070
+2082
+1905
+1917
+1929
+1941
+1953
+1965
+1977
+1989
+1997
+2009
 2021
-2022
-2023
-2024
 2025
-2026
-2027
-2028
-2029
-2030
-2031
-2032
-2033
-2034
-2035
-2036
 2037
-2038
-2039
-2040
-2041
-2042
-2043
-2044
-2045
-2046
-2047
-2048
 2049
-2050
-2051
-2052
-2053
-2054
-2055
-2056
-2057
-2058
-2059
-2060
 2061
-2062
-2063
-2064
-2065
-2066
-2067
-2068
-2069
-2070
-2071
-2072
 2073
-2074
-2075
-2076
-2077
-2078
-2079
-2080
-2081
-2082
-2083
-2084
 2085
-2086
-2087
-2088
-2089
-2090
-2091
 2092
 2093
 2094
 2095
-2096
-2097
-2098
-2099
-2100
-2101
-2102
-2103
+2120
+2121
+2124
+2125
+2126
+2127
+2152
+2153
+0000
+1912
+1924
+1936
+1948
+1960
+1972
+1984
+1996
+2004
+2016
+2032
+2044
+2056
+2068
+2080
+2116
+2148
+1903
+1915
+1927
+1939
+1951
+1963
+1975
+1987
+2007
+2019
+2023
+2035
+2047
+2059
+2071
+2083
+2155
+1910
+1922
+1934
+1946
+1958
+1970
+1982
+1994
+2002
+2014
+2030
+2042
+2054
+2066
+2078
+2090
+1913
+1925
+1937
+1949
+1961
+1973
+1985
+2005
+2017
+2033
+2045
+2057
+2069
+2081
 2104
 2105
 2106
 2107
-2108
-2109
-2110
-2111
-2112
-2113
-2114
-2115
-2116
 2117
 2118
 2119
-2120
-2121
-2122
-2123
-2124
-2125
-2126
-2127
-2128
-2129
-2130
-2131
-2132
-2133
-2134
-2135
 2136
 2137
 2138
 2139
-2140
-2141
-2142
-2143
-2144
-2145
-2146
-2147
-2148
 2149
 2150
 2151
-2152
-2153
+1908
+1920
+1944
+1956
+1968
+1980
+1992
+2000
+2012
+2028
+2040
+2052
+2064
+2076
+2088
+2096
+2098
+2108
+2128
+2130
+2140
+1911
+1923
+1935
+1947
+1959
+1971
+1983
+1995
+2003
+2015
+2031
+2043
+2055
+2067
+2079
+2091
+2115
+1906
+1918
+1930
+1942
+1954
+1966
+1978
+1990
+1998
+2010
+2022
+2026
+2038
+2050
+2062
+2074
+2086
+2109
+2122
+2141
 2154
-2155
 drop table t2;

=== modified file 'mysql-test/suite/parts/r/partition_decimal_innodb.result'
--- a/mysql-test/suite/parts/r/partition_decimal_innodb.result	2010-12-14 11:13:35 +0000
+++ b/mysql-test/suite/parts/r/partition_decimal_innodb.result	2011-03-24 12:46:19 +0000
@@ -18,33 +18,33 @@ t1	CREATE TABLE `t1` (
 insert into t1 values (999999.9999), (-999999.9999), (123456.7899), (-123456.7899), (-1.5), (1), (0), (-1), (1.5), (1234.567), (-1234.567);
 select * from t1;
 a
--999999.9999
--123456.7899
 -1234.5670
+123456.7899
+-123456.7899
+0.0000
+-999999.9999
 -1.5000
 -1.0000
-0.0000
 1.0000
-1.5000
 1234.5670
-123456.7899
 999999.9999
+1.5000
 select * from t1 where a=1234.567;
 a
 1234.5670
 delete from t1 where a=1234.567;
 select * from t1;
 a
--999999.9999
--123456.7899
 -1234.5670
+123456.7899
+-123456.7899
+0.0000
+-999999.9999
 -1.5000
 -1.0000
-0.0000
 1.0000
-1.5000
-123456.7899
 999999.9999
+1.5000
 drop table t1;
 create table t2 (a decimal(18,9) not null, primary key(a)) engine='InnoDB' 
 partition by key (a) partitions 10;
@@ -59,27 +59,27 @@ PARTITIONS 10 */
 insert into t2 values (999999999.999999999), (-999999999.999999999), (-1.5), (-1), (0), (1.5), (1234.567), (-1234.567);
 select * from t2;
 a
--999999999.999999999
--1234.567000000
--1.500000000
 -1.000000000
-0.000000000
 1.500000000
+-999999999.999999999
+-1.500000000
 1234.567000000
 999999999.999999999
+-1234.567000000
+0.000000000
 select * from t2 where a=1234.567;
 a
 1234.567000000
 delete from t2 where a=1234.567;
 select * from t2;
 a
--999999999.999999999
--1234.567000000
--1.500000000
 -1.000000000
-0.000000000
 1.500000000
+-999999999.999999999
+-1.500000000
 999999999.999999999
+-1234.567000000
+0.000000000
 delete from t2;
 1024*3 inserts;
 select count(*) from t2;

=== modified file 'mysql-test/suite/parts/r/partition_decimal_myisam.result'
--- a/mysql-test/suite/parts/r/partition_decimal_myisam.result	2010-12-14 11:13:35 +0000
+++ b/mysql-test/suite/parts/r/partition_decimal_myisam.result	2011-03-24 12:46:19 +0000
@@ -18,33 +18,33 @@ t1	CREATE TABLE `t1` (
 insert into t1 values (999999.9999), (-999999.9999), (123456.7899), (-123456.7899), (-1.5), (1), (0), (-1), (1.5), (1234.567), (-1234.567);
 select * from t1;
 a
--999999.9999
--123456.7899
 -1234.5670
+123456.7899
+-123456.7899
+0.0000
+-999999.9999
 -1.5000
 -1.0000
-0.0000
 1.0000
-1.5000
 1234.5670
-123456.7899
 999999.9999
+1.5000
 select * from t1 where a=1234.567;
 a
 1234.5670
 delete from t1 where a=1234.567;
 select * from t1;
 a
--999999.9999
--123456.7899
 -1234.5670
+123456.7899
+-123456.7899
+0.0000
+-999999.9999
 -1.5000
 -1.0000
-0.0000
 1.0000
-1.5000
-123456.7899
 999999.9999
+1.5000
 drop table t1;
 create table t2 (a decimal(18,9) not null, primary key(a)) engine='MYISAM' 
 partition by key (a) partitions 10;
@@ -59,27 +59,27 @@ PARTITIONS 10 */
 insert into t2 values (999999999.999999999), (-999999999.999999999), (-1.5), (-1), (0), (1.5), (1234.567), (-1234.567);
 select * from t2;
 a
--999999999.999999999
--1234.567000000
--1.500000000
 -1.000000000
-0.000000000
 1.500000000
+-999999999.999999999
+-1.500000000
 1234.567000000
 999999999.999999999
+-1234.567000000
+0.000000000
 select * from t2 where a=1234.567;
 a
 1234.567000000
 delete from t2 where a=1234.567;
 select * from t2;
 a
--999999999.999999999
--1234.567000000
--1.500000000
 -1.000000000
-0.000000000
 1.500000000
+-999999999.999999999
+-1.500000000
 999999999.999999999
+-1234.567000000
+0.000000000
 delete from t2;
 65535*3 inserts;
 select count(*) from t2;

=== modified file 'mysql-test/suite/parts/r/partition_float_innodb.result'
--- a/mysql-test/suite/parts/r/partition_float_innodb.result	2009-12-23 12:04:32 +0000
+++ b/mysql-test/suite/parts/r/partition_float_innodb.result	2011-03-24 12:46:19 +0000
@@ -18,10 +18,10 @@ t1	CREATE TABLE `t1` (
 insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5);
 select * from t1;
 a
+0
 -3.40282e38
 -1.5
 -1
-0
 1
 1.5
 3.40282e38
@@ -31,10 +31,10 @@ a
 delete from t1 where a=1.5;
 select * from t1;
 a
+0
 -3.40282e38
 -1.5
 -1
-0
 1
 3.40282e38
 drop table t1;
@@ -51,10 +51,10 @@ PARTITIONS 10 */
 insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5);
 select * from t2;
 a
+0
 -3.40282e38
 -3.40282e37
 -123.456
-0
 1.5
 123.456
 1234550
@@ -63,10 +63,10 @@ a
 delete from t2 where a=123.456;
 select * from t2;
 a
+0
 -3.40282e38
 -3.40282e37
 -123.456
-0
 1.5
 123.456
 1234550
@@ -76,10 +76,10 @@ a
 delete from t2 where a=1.5;
 select * from t2;
 a
+0
 -3.40282e38
 -3.40282e37
 -123.456
-0
 123.456
 1234550
 delete from t2;
@@ -108,13 +108,13 @@ t1	CREATE TABLE `t1` (
 insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
 select * from t1;
 a
+-2.2250738585072014e-208
+1234.567
 -2.2250738585072016e208
+0
 -1.5
 -1
--2.2250738585072014e-208
-0
 1.5
-1234.567
 2.2250738585072016e208
 select * from t1 where a=1.5;
 a
@@ -122,12 +122,12 @@ a
 delete from t1 where a=1.5;
 select * from t1;
 a
+-2.2250738585072014e-208
+1234.567
 -2.2250738585072016e208
+0
 -1.5
 -1
--2.2250738585072014e-208
-0
-1234.567
 2.2250738585072016e208
 drop table t1;
 create table t2 (a double not null, primary key(a)) engine='InnoDB' 
@@ -143,27 +143,27 @@ PARTITIONS 10 */
 insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
 select * from t2;
 a
--2.2250738585072016e208
--1.5
--1
--2.2250738585072014e-208
 0
+-1.5
 1.5
-1234.567
 2.2250738585072016e208
+-2.2250738585072014e-208
+1234.567
+-2.2250738585072016e208
+-1
 select * from t2 where a=1234.567;
 a
 1234.567
 delete from t2 where a=1234.567;
 select * from t2;
 a
--2.2250738585072016e208
--1.5
--1
--2.2250738585072014e-208
 0
+-1.5
 1.5
 2.2250738585072016e208
+-2.2250738585072014e-208
+-2.2250738585072016e208
+-1
 delete from t2;
 1024*3 inserts;
 select count(*) from t2;

=== modified file 'mysql-test/suite/parts/r/partition_float_myisam.result'
--- a/mysql-test/suite/parts/r/partition_float_myisam.result	2009-12-23 12:04:32 +0000
+++ b/mysql-test/suite/parts/r/partition_float_myisam.result	2011-03-24 12:46:19 +0000
@@ -18,10 +18,10 @@ t1	CREATE TABLE `t1` (
 insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5);
 select * from t1;
 a
+0
 -3.40282e38
 -1.5
 -1
-0
 1
 1.5
 3.40282e38
@@ -31,10 +31,10 @@ a
 delete from t1 where a=1.5;
 select * from t1;
 a
+0
 -3.40282e38
 -1.5
 -1
-0
 1
 3.40282e38
 drop table t1;
@@ -51,10 +51,10 @@ PARTITIONS 10 */
 insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5);
 select * from t2;
 a
+0
 -3.40282e38
 -3.40282e37
 -123.456
-0
 1.5
 123.456
 1234550
@@ -63,10 +63,10 @@ a
 delete from t2 where a=123.456;
 select * from t2;
 a
+0
 -3.40282e38
 -3.40282e37
 -123.456
-0
 1.5
 123.456
 1234550
@@ -76,10 +76,10 @@ a
 delete from t2 where a=1.5;
 select * from t2;
 a
+0
 -3.40282e38
 -3.40282e37
 -123.456
-0
 123.456
 1234550
 delete from t2;
@@ -108,13 +108,13 @@ t1	CREATE TABLE `t1` (
 insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
 select * from t1;
 a
+-2.2250738585072014e-208
+1234.567
 -2.2250738585072016e208
+0
 -1.5
 -1
--2.2250738585072014e-208
-0
 1.5
-1234.567
 2.2250738585072016e208
 select * from t1 where a=1.5;
 a
@@ -122,12 +122,12 @@ a
 delete from t1 where a=1.5;
 select * from t1;
 a
+-2.2250738585072014e-208
+1234.567
 -2.2250738585072016e208
+0
 -1.5
 -1
--2.2250738585072014e-208
-0
-1234.567
 2.2250738585072016e208
 drop table t1;
 create table t2 (a double not null, primary key(a)) engine='MYISAM' 
@@ -143,27 +143,27 @@ PARTITIONS 10 */
 insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
 select * from t2;
 a
--2.2250738585072016e208
--1.5
--1
--2.2250738585072014e-208
 0
+-1.5
 1.5
-1234.567
 2.2250738585072016e208
+-2.2250738585072014e-208
+1234.567
+-2.2250738585072016e208
+-1
 select * from t2 where a=1234.567;
 a
 1234.567
 delete from t2 where a=1234.567;
 select * from t2;
 a
--2.2250738585072016e208
--1.5
--1
--2.2250738585072014e-208
 0
+-1.5
 1.5
 2.2250738585072016e208
+-2.2250738585072014e-208
+-2.2250738585072016e208
+-1
 delete from t2;
 16384*3 inserts;
 select count(*) from t2;

=== modified file 'mysql-test/suite/parts/r/partition_recover_myisam.result'
--- a/mysql-test/suite/parts/r/partition_recover_myisam.result	2011-01-28 13:49:59 +0000
+++ b/mysql-test/suite/parts/r/partition_recover_myisam.result	2011-03-24 12:46:19 +0000
@@ -37,16 +37,16 @@ FLUSH TABLES;
 # head -c1024 t1#P#p1.MYI > corrupt_t1#P#p1.MYI 
 SELECT * FROM t1_will_crash;
 a
-1
-2
 3
-4
-5
 6
-7
-8
 9
+1
+4
+7
 10
+2
+5
+8
 11
 Warnings:
 Error	145	Table './test/t1_will_crash#P#p1' is marked as crashed and should be repaired

=== modified file 'mysql-test/suite/parts/r/partition_repair_myisam.result'
--- a/mysql-test/suite/parts/r/partition_repair_myisam.result	2010-12-14 15:13:57 +0000
+++ b/mysql-test/suite/parts/r/partition_repair_myisam.result	2011-03-24 12:46:19 +0000
@@ -114,16 +114,16 @@ test.t1_will_crash	repair	warning	Number
 test.t1_will_crash	repair	status	OK
 SELECT * FROM t1_will_crash;
 a
-1
-2
 3
-4
-5
 6
-7
-8
 9
+1
+4
+7
 10
+2
+5
+8
 11
 FLUSH TABLES;
 # test with ALTER TABLE ... CHECK/REPAIR PARTITION
@@ -155,16 +155,16 @@ test.t1_will_crash	repair	warning	Number
 test.t1_will_crash	repair	status	OK
 SELECT * FROM t1_will_crash;
 a
-1
-2
 3
-4
-5
 6
-7
-8
 9
+1
+4
+7
 10
+2
+5
+8
 11
 DROP TABLE t1_will_crash;
 # test of check/repair of a damaged subpartition's MYI-file
@@ -178,16 +178,16 @@ PARTITION p1 VALUES LESS THAN MAXVALUE);
 INSERT INTO t1_will_crash VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
 SELECT * FROM t1_will_crash;
 a
-1
 2
-3
 4
-5
 6
-7
+1
+3
+5
 8
-9
 10
+7
+9
 11
 FLUSH TABLES;
 # test with CHECK/REPAIR TABLE
@@ -205,16 +205,16 @@ test.t1_will_crash	repair	warning	Number
 test.t1_will_crash	repair	status	OK
 SELECT * FROM t1_will_crash;
 a
-1
 2
-3
 4
-5
 6
-7
+1
+3
+5
 8
-9
 10
+7
+9
 11
 FLUSH TABLES;
 # test with ALTER TABLE ... CHECK/REPAIR PARTITION
@@ -246,16 +246,16 @@ test.t1_will_crash	repair	warning	Number
 test.t1_will_crash	repair	status	OK
 SELECT * FROM t1_will_crash;
 a
-1
 2
-3
 4
-5
 6
-7
+1
+3
+5
 8
-9
 10
+7
+9
 11
 DROP TABLE t1_will_crash;
 # test of check/repair of crashed partitions in variuos states

=== modified file 'mysql-test/suite/parts/r/partition_special_innodb.result'
--- a/mysql-test/suite/parts/r/partition_special_innodb.result	2010-10-21 09:49:16 +0000
+++ b/mysql-test/suite/parts/r/partition_special_innodb.result	2011-03-24 12:46:19 +0000
@@ -25,9 +25,9 @@ insert into t1 values 
 ('2000-06-15', 'jukg','zikhuk','m');
 select * from t1;
 a	b	c	d
-1975-01-01	abcde	abcde	m
-1980-10-14	fgbbd	dtzndtz	w
 1983-12-31	cdef	srtbvsr	w
+1980-10-14	fgbbd	dtzndtz	w
+1975-01-01	abcde	abcde	m
 2000-06-15	jukg	zikhuk	m
 select * from t1 where a<19851231;
 a	b	c	d

=== modified file 'mysql-test/suite/parts/r/partition_special_myisam.result'
--- a/mysql-test/suite/parts/r/partition_special_myisam.result	2010-10-21 09:49:16 +0000
+++ b/mysql-test/suite/parts/r/partition_special_myisam.result	2011-03-24 12:46:19 +0000
@@ -25,15 +25,15 @@ insert into t1 values 
 ('2000-06-15', 'jukg','zikhuk','m');
 select * from t1;
 a	b	c	d
-1975-01-01	abcde	abcde	m
-1980-10-14	fgbbd	dtzndtz	w
 1983-12-31	cdef	srtbvsr	w
+1980-10-14	fgbbd	dtzndtz	w
+1975-01-01	abcde	abcde	m
 2000-06-15	jukg	zikhuk	m
 select * from t1 where a<19851231;
 a	b	c	d
-1975-01-01	abcde	abcde	m
-1980-10-14	fgbbd	dtzndtz	w
 1983-12-31	cdef	srtbvsr	w
+1980-10-14	fgbbd	dtzndtz	w
+1975-01-01	abcde	abcde	m
 drop table t1;
 create table t1 (a date not null, b varchar(50) not null, c varchar(50) not null, d enum('m', 'w') not null, e int not null, f decimal (18,2) not null, g bigint not null, h tinyint not null, i char(255), primary key(a,b,c,d,e,f,g,h)) engine='MyISAM' 
 partition by key(a,b,c,d,e,f,g,h) (


Attachment: [text/bzr-bundle] bzr/ole.john.aske@oracle.com-20110324124619-sk2nfbcrx805h12j.bundle
Thread
bzr commit into mysql-trunk branch (ole.john.aske:3312) Bug#11764737Ole John Aske24 Mar