mariadb/mysql-test/std_data
Michael Widenius 192678e7bf MDEV-5241: Collation incompatibilities with MySQL-5.6
- Character set code & tests from Alexander Barkov
- Integration with ALTER TABLE, REPAIR and open_table from Monty

The problem was that MySQL 5.6 added some croatian and vitanamese character set collations that are incompatible with MariaDB.

The fix is to move the MariaDB conflicting collation numbers out of the region that MySQL is likely to use.
mysql_upgrade, REPAIR TABLE or ALTER TABLE will fix the collations.
If one tries to access and old incompatible table, one will get the error "Table upgrade required...."
After this patch, MariaDB supports all the MySQL character set collations and the old MariaDB croatian collations, which are closer to the latest standard than the MySQL versions.

New character sets:
ucs2_croatian_mysql561_uca_ci
utf8_croatian_mysql561_uca_ci
utf16_croatian_mysql561_uca_ci
utf32_croatian_mysql561_uca_ci
utf8mb4_croatian_mysql561_uca_ci

Other things:
- Fixed some compiler warnings
- mysql_upgrade prints information about repaired tables.
- Increased version number

VERSION:
  Increased VERSION number
client/mysqlcheck.c:
  Print repaired table name when using --verbose
include/m_ctype.h:
  Add new MariaDB collation regions that are not likely to conflict with MySQL
include/my_base.h:
  Added flag to detect if table was opened for ALTER TABLE
mysql-test/r/ctype_ldml.result:
  Updated result
mysql-test/r/ctype_uca.result:
  Updated result
mysql-test/r/ctype_upgrade.result:
  Updated result
mysql-test/r/ctype_utf16_uca.result:
  Updated result
mysql-test/r/ctype_utf32_uca.result:
  Updated result
mysql-test/r/ctype_utf8mb4_uca.result:
  Updated result
mysql-test/std_data/ctype_upgrade:
  Test files for testing upgrading of conflicting collations
mysql-test/suite/engines/funcs/r/db_alter_collate_ascii.result:
  New collations added
mysql-test/suite/engines/funcs/r/db_alter_collate_utf8.result:
  New collations added
mysql-test/suite/innodb/r/innodb_ctype_ldml.result:
  Updated test result
mysql-test/suite/innodb/t/innodb_ctype_ldml.test:
  Updated test result
mysql-test/suite/plugins/r/show_all_plugins.result:
  Updated version number
mysql-test/suite/roles/create_and_drop_role_invalid_user_table.result:
  Updated version number
mysql-test/t/ctype_ldml.test:
  Updated test
mysql-test/t/ctype_uca.test:
  Testing of new collations
mysql-test/t/ctype_upgrade.test:
  Testing of upgrading tables with old collations
  The test ensures that:
  - We will get an error if we try to open a table with old collations.
  - CHECK TABLE will detect that the table needs to be upgraded.
  - ALTER TABLE and REPAIR will fix the table.
  - mysql_upgrade works as expected
mysql-test/t/ctype_utf16_uca.test:
  Testing of new collations
mysql-test/t/ctype_utf32_uca.test:
  Testing of new collations
mysql-test/t/ctype_utf8mb4_uca.test:
  Testing of new collations
mysys/charset-def.c:
  Added new character sets
mysys/charset.c:
  Always give an error, if requested, if a character set didn't exist
sql/handler.cc:
  - Added upgrade_collation() to check if collation is compatible with old version
  - check_collation_compatibility() checks if we are using an old collation from MariaDB 5.5 or MySQL 5.6
  - ha_check_for_upgrade() returns HA_ADMIN_NEEDS_ALTER if we have an incompatible collation
sql/handler.h:
  Added new prototypes
sql/sql_table.cc:
  - Mark that tables are opened for ALTER TABLE
  - If table needs to be upgraded, ensure we are not using online alter table.
sql/table.cc:
  - If we are using an old incompatible collation, change to use the new one and mark table as incompatible.
  - Give an error if we try to open an incompatible table.
sql/table.h:
  Added error that table needs to be rebuild
storage/connect/ha_connect.cc:
  Fixed compiler warning
strings/ctype-uca.c:
  New character sets
2013-11-09 00:20:07 +02:00
..
crldir Next part of merge. See TODO for details 2012-08-14 17:23:34 +03:00
ctype_upgrade MDEV-5241: Collation incompatibilities with MySQL-5.6 2013-11-09 00:20:07 +02:00
funcs_1 Post merge fix for 2008-04-01 13:18:31 +02:00
mysql5613mysql MDEV-4819 Upgrade from MySQL 5.6 does not work 2013-08-07 10:57:45 +04:00
ndb_backup50 BUG#22240 Add a test case into ndb_restore_compat 2007-08-17 11:41:32 +08:00
ndb_backup51 modified ndb backup/restore to be byte order independant 2006-04-25 14:02:15 +02:00
ndb_backup51_data_be Backport of WL #2934: Make/find library for doing float/double 2009-12-22 19:23:13 +03:00
ndb_backup51_data_le Backport of WL #2934: Make/find library for doing float/double 2009-12-22 19:23:13 +03:00
parts merge 2010-10-01 15:32:03 +02:00
14897.frm A fix for Bug#14897 "ResultSet.getString("table.column") sometimes 2006-08-30 00:38:58 +04:00
bad_gis_data.dat bug #22372 2006-12-06 21:47:29 +04:00
binlog_savepoint.000001 Bug #50407 mysqlbinlog --database=X produces bad output for SAVEPOINTs 2010-03-28 19:57:33 +08:00
binlog_transaction.000001 Bug #46998 mysqlbinlog can't output BEGIN even if the database is included in a transaction 2009-09-30 10:01:52 +08:00
bug15328.cnf Bug#15328 Segmentation fault occured if my.cnf is invalid for escape sequence 2006-05-11 14:13:14 +02:00
bug16266.000001 Fix for BUG#16266: Definer is not fully qualified error during replication. 2006-03-01 14:13:07 +03:00
bug19371.frm Bug#19371 VARBINARY() have trailing zeros after upgrade from 4.1 2006-11-09 12:00:27 +01:00
bug19371.MYD Bug#19371 VARBINARY() have trailing zeros after upgrade from 4.1 2006-11-09 12:00:27 +01:00
bug19371.MYI Bug#19371 VARBINARY() have trailing zeros after upgrade from 4.1 2006-11-09 12:00:27 +01:00
bug30435_5k.txt bug#30435 2007-12-23 11:18:46 +02:00
bug30435_10k_items.txt bug#30435 2007-12-23 11:18:46 +02:00
bug33029-slave-relay-bin.000001 BUG#33029 5.0 to 5.1 replication fails on dup key when inserting 2008-03-14 11:35:41 +08:00
bug35469.dat Fix tree: 2008-03-28 23:39:47 +03:00
bug36055.frm Fixed bug #36055: mysql_upgrade doesn't really 'upgrade' tables 2008-05-12 21:01:13 +05:00
bug36055.MYD Fixed bug #36055: mysql_upgrade doesn't really 'upgrade' tables 2008-05-12 21:01:13 +05:00
bug36055.MYI Fixed bug #36055: mysql_upgrade doesn't really 'upgrade' tables 2008-05-12 21:01:13 +05:00
bug37631.frm BUG#37631 - Incorrect key file for table after upgrading from 5.0 to 5.1 2009-04-30 18:16:49 +05:30
bug37631.MYD BUG#37631 - Incorrect key file for table after upgrading from 5.0 to 5.1 2009-04-30 18:16:49 +05:30
bug37631.MYI BUG#37631 - Incorrect key file for table after upgrading from 5.0 to 5.1 2009-04-30 18:16:49 +05:30
bug40482-bin.000001 BUG#40482: server/mysqlbinlog crashes when reading invalid Incident_log_event 2008-12-29 17:04:10 +01:00
bug46565.ARZ BUG#46565 - repair of partition fail for archive engine 2010-03-25 23:57:06 +04:00
bug46565.frm BUG#46565 - repair of partition fail for archive engine 2010-03-25 23:57:06 +04:00
bug47012.ARM Bug #47012 archive tables are not upgradeable, and server crashes 2009-11-11 13:33:29 +05:30
bug47012.ARZ Bug #47012 archive tables are not upgradeable, and server crashes 2009-11-11 13:33:29 +05:30
bug47012.frm Bug #47012 archive tables are not upgradeable, and server crashes 2009-11-11 13:33:29 +05:30
bug47142_master-bin.000001 Bug #47142 "slave start until" stops 1 event too late in 4.1 to 5.0 replication 2010-01-25 17:46:48 +02:00
bug47205.frm Bug #11755431 (former 47205) 2011-03-08 09:41:57 +01:00
bug48265.frm BUG#48265 - MRG_MYISAM problem (works in 5.0.85, does't 2010-03-03 14:49:03 +04:00
bug48449.frm Bug#48449: hang on show create view after upgrading when view contains function of view 2010-02-10 16:11:08 -02:00
bug48633.ARM MDEV-4786 - merge 10.0-monty - 10.0 2013-07-29 18:08:49 +04:00
bug48633.ARZ MDEV-4786 - merge 10.0-monty - 10.0 2013-07-29 18:08:49 +04:00
bug48633.frm MDEV-4786 - merge 10.0-monty - 10.0 2013-07-29 18:08:49 +04:00
bug49823.CSM Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL 2010-02-26 09:22:48 -03:00
bug49823.CSV Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL 2010-02-26 09:22:48 -03:00
bug49823.frm Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL 2010-02-26 09:22:48 -03:00
bug887051.txt Fixed bug: lp:887051 ; Error in recovery with LOAD DATA + DELETE 2011-12-13 19:57:19 +02:00
bug11747416_32228_binlog.000001 Bug#11747416 : 32228 A disk full makes binary log corrupt 2011-09-29 14:14:43 +03:00
cacert.pem Bug #50642 : ssl certs in test suite are expiring soon. 2010-01-29 15:55:46 +02:00
charset_utf8.txt System variable tests delivered by Folio3 (see WL4288). 2008-04-10 15:14:28 +02:00
checkDBI_DBD-mysql.pl Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
client-cert.pem Bug #50642 : ssl certs in test suite are expiring soon. 2010-01-29 15:55:46 +02:00
client-key.pem Bug #50642 : ssl certs in test suite are expiring soon. 2010-01-29 15:55:46 +02:00
cluster_7022_table.frm Bug#60111 storage type for table not saved in .frm 2011-03-04 09:41:29 +01:00
cluster_7022_table.MYD Bug#60111 storage type for table not saved in .frm 2011-03-04 09:41:29 +01:00
cluster_7022_table.MYI Bug#60111 storage type for table not saved in .frm 2011-03-04 09:41:29 +01:00
corrupt-relay-bin.000624 BUG#31793 (log event corruption causes crash): 2007-11-09 13:43:09 +01:00
corrupt_t1#P#p1.MYI Bug#35161: --myisam-recover does not work for partitioned MyISAM tables 2008-07-07 17:54:42 +02:00
corrupt_t1.MYI Bug#35161: --myisam-recover does not work for partitioned MyISAM tables 2008-07-07 17:54:42 +02:00
crl-ca-cert.pem more fixes for test cases 2012-10-01 13:15:29 +02:00
crl-client-cert.pem more fixes for test cases 2012-10-01 13:15:29 +02:00
crl-client-key.pem more fixes for test cases 2012-10-01 13:15:29 +02:00
crl-client-revoked.crl Next part of merge. See TODO for details 2012-08-14 17:23:34 +03:00
crl-server-cert.pem more fixes for test cases 2012-10-01 13:15:29 +02:00
crl-server-key.pem more fixes for test cases 2012-10-01 13:15:29 +02:00
des_key_file
Index.xml A few minor Unicode collation customization improvements were made, 2013-10-31 14:24:24 +04:00
init_file.dat Bug#43587: Putting event_scheduler=1 in init SQL file crashes 2009-07-24 15:45:42 -03:00
init_file_longline_3816.sql MDEV-3816 init-file stops getting executed if a long enough line is encountered; on a debug version, assertion `! is_set() || can_overwrite_status' fails 2012-12-16 21:11:24 +01:00
intersect-bug50389.tsv Bug#50389 Using intersect does not return all rows 2010-06-21 15:09:58 +04:00
latin1.xml MDEV-5163 Merge WEIGHT_STRING function from MySQL-5.6 2013-10-23 20:25:52 +04:00
loaddata1.dat Fixed that reading a DATE string of 000000 is interpreted as 0000-00-00 instead of 2000-00-00 2003-05-05 14:52:39 +03:00
loaddata2.dat Move test that uses many tables (in query_cache.test) to separate test so that we can get it 'skipped' instead of 'failed' on system where we can't open many files. 2003-08-22 04:07:40 +03:00
loaddata3.dat Extend max_allowed_packet to 2G in mysql and mysqldump (Bug #2105) 2003-12-14 06:39:52 +02:00
loaddata4.dat Extend max_allowed_packet to 2G in mysql and mysqldump (Bug #2105) 2003-12-14 06:39:52 +02:00
loaddata5.dat Fix LOAD DATA to handle having the escape and enclosed-by character 2005-06-22 16:14:14 -07:00
loaddata6.dat Bug#15126 character_set_database is not replicated (LOAD DATA INFILE need it) 2007-02-28 17:06:57 +04:00
loaddata7.dat MWL#36: Add a mysqlbinlog option to change the used database. 2009-10-16 18:22:56 +04:00
loaddata_dq.dat Merge mysql.com:/home/jimw/my/mysql-4.1-clean 2005-10-26 14:11:08 -07:00
loaddata_pair.dat Bug#11401: Setting thd->lex so that engines (i.e., InnoDB) recognizes 2005-07-05 13:55:54 +02:00
loaddata_utf8.dat BUG#45516 SQL thread does not use database charset properly 2009-08-12 11:54:05 +08:00
loadxml.dat WL#1397 convert XML -> SQL 2009-10-12 11:22:53 +05:00
loadxml2.dat WL#1397 convert XML -> SQL 2009-10-12 11:22:53 +05:00
long_table_name.frm Enable archive tables to work with mysql_upgrade / repair 2010-09-03 20:55:56 +03:00
long_table_name.MYD Enable archive tables to work with mysql_upgrade / repair 2010-09-03 20:55:56 +03:00
long_table_name.MYI Enable archive tables to work with mysql_upgrade / repair 2010-09-03 20:55:56 +03:00
master-bin.000001 Changed binlog name padding from binlog.001 to binlog.000001 2002-10-29 15:11:13 -07:00
mdev-4645-binlog_checksum.binlog MDEV-4645: Incorrect reads of frozen binlog events; FDE corrupted in relay log 2013-09-12 21:36:58 +03:00
mdev-4645-binlog_group_id.binlog MDEV-4645: Incorrect reads of frozen binlog events; FDE corrupted in relay log 2013-09-12 21:36:58 +03:00
mdev-4645-binlog_group_id_checksum.binlog MDEV-4645: Incorrect reads of frozen binlog events; FDE corrupted in relay log 2013-09-12 21:36:58 +03:00
mdev-4645-binlog_none.binlog MDEV-4645: Incorrect reads of frozen binlog events; FDE corrupted in relay log 2013-09-12 21:36:58 +03:00
mdev5029_1.frm MDEV-5029 Crash in MariaDB 5.5.33 with .frm from older MariaDB release 2013-09-18 17:25:10 +02:00
mdev5029_2.frm MDEV-5029 Crash in MariaDB 5.5.33 with .frm from older MariaDB release 2013-09-18 17:25:10 +02:00
mdev5029_2.MAD MDEV-5029 Crash in MariaDB 5.5.33 with .frm from older MariaDB release 2013-09-18 17:25:10 +02:00
mdev5029_2.MAI MDEV-5029 Crash in MariaDB 5.5.33 with .frm from older MariaDB release 2013-09-18 17:25:10 +02:00
Moscow_leap Bug #39920: MySQL cannot deal with Leap Second expression in string literal. 2008-12-01 16:18:35 +02:00
mysql56datetime.frm Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56datetime.MYD Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56datetime.MYI Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56time.frm Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56time.MYD Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56time.MYI Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56timestamp.frm Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56timestamp.MYD Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
mysql56timestamp.MYI Adding support for MySQL-5.6 temporal column types: 2013-07-10 11:49:17 +04:00
ndb_config_config.ini WL#4189 2007-12-12 18:19:24 +01:00
ndb_config_mycnf1.cnf ndb 2005-09-30 12:19:15 +02:00
ndb_config_mycnf2.cnf Bug #13009 No gaps allowed in node id number sequence 2005-10-12 14:17:39 +02:00
numbers.txt System variable tests delivered by Folio3 (see WL4288). 2008-04-10 15:14:28 +02:00
old_table-323.frm Added --debug-info to most clients to detect memory leaks in mysql-test-run 2006-11-21 22:32:58 +02:00
onerow.xml MDEV-452 Add full support for auto-initialized/updated timestamp and datetime 2012-10-17 15:43:56 +03:00
rpl_bug28618.dat BUG#37858: loaddata,rpl_slave_skip,rpl_innodb_mixed_dml fail if datafile not world-readable 2008-07-04 11:33:34 +02:00
rpl_loaddata.dat Guard against compiling without -fno-exceptions 2003-01-14 11:27:26 +02:00
rpl_loaddata2.dat Fix for BUG#1391: 2003-09-25 00:14:46 +02:00
rpl_mixed.dat BUG#37858: loaddata,rpl_slave_skip,rpl_innodb_mixed_dml fail if datafile not world-readable 2008-07-04 11:33:34 +02:00
rpl_timezone.dat testing repl of timezone with LOAD DATA INFILE (hourra!) 2005-03-24 16:43:50 +01:00
rpl_timezone2.dat WL#1012: All changes as one single changeset. 2005-12-22 06:39:02 +01:00
server-cert.pem Bug #50642 : ssl certs in test suite are expiring soon. 2010-01-29 15:55:46 +02:00
server-key.pem Bug #50642 : ssl certs in test suite are expiring soon. 2010-01-29 15:55:46 +02:00
server8k-cert.pem Bug#53463: YaSSL patch appears to be reverted 2010-07-28 12:59:19 -03:00
server8k-key.pem Bug#53463: YaSSL patch appears to be reverted 2010-07-28 12:59:19 -03:00
t917689.ARZ Fixed bug lp:917689 "Archive table corruption crashing MariaDB signal 11" 2012-03-13 16:38:43 +02:00
trunc_binlog.000001 fix rpl_trunc_binlog to test the new behaviour 2005-02-19 22:24:13 +01:00
untrusted-cacert.pem Add an untrusted cacert used when testing 2006-05-03 14:10:22 +02:00
vchar.frm Update results for new varchar handling 2004-12-07 15:47:00 +02:00
warnings_loaddata.dat update the test for LOAD DATA INFILE warnings 2003-04-22 00:54:33 -07:00
words.dat Fixed multi-table-delete for InnoDB tables 2003-02-17 02:14:37 +02:00
words2.dat WL#1012: All changes as one single changeset. 2005-12-22 06:39:02 +01:00
words3.dat Merge Percona patch MWL#47 into mariadb 5.2-percona. 2011-01-10 14:53:09 +01:00