mariadb/include
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
..
atomic centos5 gcc 4.1 asm bug 2013-05-07 18:28:36 +02:00
mysql Merge from 10.0-base to 10.0 the feature MDEV-4506: Parallel replication. 2013-11-01 12:00:11 +01:00
base64.h Merging TO_BASE64() and FROM_BASE64() from MySQL-5.6 2013-09-23 18:58:33 +04:00
big_endian.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic_x86.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic_x86_64.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
CMakeLists.txt MDEV-4960 Errors compiling php5.5.3 mysqli extension 2013-08-30 18:24:01 +02:00
crypt_genhash_impl.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
decimal.h merge 2012-04-05 23:07:18 +02:00
errmsg.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
ft_global.h 10.0-monty merge 2013-07-21 16:39:19 +02:00
handler_state.h Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
hash.h small cleanup 2013-04-07 14:03:43 +02:00
heap.h MDEV-4011 Added per thread memory counting and usage 2013-01-23 16:16:14 +01:00
keycache.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
lf.h cleanup: remove LF_REQUIRE_PINS, use compile_time_assert() instead of reimplementing it 2013-06-24 20:56:55 +02:00
little_endian.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
m_ctype.h MDEV-5241: Collation incompatibilities with MySQL-5.6 2013-11-09 00:20:07 +02:00
m_string.h MDEV-4928 Merge collation customization improvements 2013-10-02 15:04:07 +04:00
ma_dyncol.h MDEV-5084: Missing C++ support in ma_dyncol.h 2013-10-07 10:30:54 +03:00
maria.h 5.5 merge 2013-07-17 21:24:29 +02:00
my_aes.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_alarm.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_alloc.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_atomic.h mysql-5.5.18 merge 2011-11-03 19:17:05 +01:00
my_attribute.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_base.h MDEV-5241: Collation incompatibilities with MySQL-5.6 2013-11-09 00:20:07 +02:00
my_bit.h merge with 5.3 2011-10-19 21:45:18 +02:00
my_bitmap.h 10.0-monty merge 2013-07-21 16:39:19 +02:00
my_byteorder.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_compare.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
my_compiler.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_context.h 10.0-base merge 2013-07-18 16:46:57 +02:00
my_dbug.h MDEV-26: Global transaction ID. 2013-03-26 14:44:27 +01:00
my_decimal_limits.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_default.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_dir.h my_dir() cleanup 2013-04-07 15:19:45 +02:00
my_getopt.h 10.0-base merge. 2013-09-21 10:14:42 +02:00
my_global.h 10.0-base merge. 2013-09-21 10:14:42 +02:00
my_handler_errors.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_libwrap.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_list.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_md5.h 10.0-monty merge 2013-07-21 16:39:19 +02:00
my_net.h 10.0-base merge 2013-07-18 16:46:57 +02:00
my_nosys.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_pthread.h 10.0-base merge 2013-07-18 16:46:57 +02:00
my_rdtsc.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_rnd.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_stacktrace.h Define dummy my_init_stacktrace() to allow one to call it without #ifdef HAVE_STACKTRACE 2012-04-03 15:48:56 +03:00
my_sys.h 10.0-base merge (roles) 2013-10-29 15:08:44 +01:00
my_time.h MDEV-4871 Temporal literals do not accept nanoseconds 2013-08-15 15:24:34 +04:00
my_tree.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_uctype.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_user.h support DEFINER=role and DEFINER=current_role 2013-10-18 12:17:49 -07:00
my_valgrind.h Compile 10.0 on Windows 2012-08-30 11:36:24 +02:00
my_xml.h MDEV-4928 Merge collation customization improvements 2013-10-02 15:04:07 +04:00
myisam.h 5.5 merge 2013-07-17 21:24:29 +02:00
myisamchk.h 5.5 merge 2013-06-06 17:51:28 +02:00
myisammrg.h fix merge.test: online alter table support for MERGE tables, really 2013-07-11 18:57:11 +02:00
myisampack.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
mysql.h Client attributes 2013-10-03 18:00:44 +03:00
mysql.h.pp Client attributes 2013-10-03 18:00:44 +03:00
mysql_async.h MDEV-3802: Millisecond timeout support in non-blocking client library + fix incorrect blocking. 2012-10-12 11:00:01 +02:00
mysql_com.h Client attributes 2013-10-03 18:00:44 +03:00
mysql_com_server.h Next part of merge. See TODO for details 2012-08-14 17:23:34 +03:00
mysql_embed.h 5.3 merge 2012-01-13 15:50:02 +01:00
mysql_time.h 10.0-base merge 2013-07-18 16:46:57 +02:00
mysql_version.h.in mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
mysqld_default_groups.h MDEV-4068 rpm scriptlet chown command dangerous 2013-03-06 09:32:13 +01:00
mysys_err.h 5.3 merge 2012-01-13 15:50:02 +01:00
password.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
probes_mysql.d.base Updated/added copyright headers 2011-06-30 17:46:53 +02:00
probes_mysql.h more portable fix for lp:942266 - 5.5 builds fail with systemtap-sdt-dev installed on Ubuntu 2012-05-11 09:18:00 +02:00
probes_mysql_nodtrace.h MDEV-4425 REGEXP enhancements 2013-09-26 18:02:17 +04:00
queues.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
rijndael.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
service_versions.h 10.0-base merge. 2013-09-21 10:14:42 +02:00
sha1.h SHA1 service 2013-07-13 17:48:06 +02:00
sha2.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_common.h Client attributes 2013-10-03 18:00:44 +03:00
sslopt-case.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
sslopt-longopts.h Next part of merge. See TODO for details 2012-08-14 17:23:34 +03:00
sslopt-vars.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
t_ctype.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
thr_alarm.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
thr_lock.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
thread_pool_priv.h 10.0-monty merge 2013-07-21 16:39:19 +02:00
typelib.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
violite.h 10.0-base merge 2013-04-15 15:09:22 +02:00
waiting_threads.h use PSI wrappers in aria and other non-MySQL code 2011-07-13 21:10:18 +02:00
welcome_copyright_notice.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
wqueue.h fix the include guards and add missing gplv2 headers 2012-02-17 12:19:38 +01:00