mariadb/mysql-test/std_data
Vicențiu Ciorbaru f6549e9544 MDEV-18323 Convert MySQL JSON type to MariaDB TEXT in mysql_upgrade
This patch solves two key problems.
1. There is a type number clash between MySQL and MariaDB. The number
   245, used for MariaDB Virtual Fields is the same as MySQL's JSON.
   This leads to corrupt FRM errors if unhandled. The code properly
   checks frm table version number and if it matches 5.7+ (until 10.0+)
   it will assume it is dealing with a MySQL table with the JSON
   datatype.
2. MySQL JSON datatype uses a proprietary format to pack JSON data. The
   patch introduces a datatype plugin which parses the format and convers
   it to its string representation.

The intended conversion path is to only use the JSON datatype within
ALTER TABLE <table> FORCE, to force a table recreate. This happens
during mysql_upgrade or via a direct ALTER TABLE <table> FORCE.
2020-10-28 11:38:14 +02:00
..
crldir
ctype_upgrade
frm
funcs_1
ldml MDEV-7947 strcmp() takes 0.37% in OLTP RO 2020-07-23 10:54:33 +03:00
loaddata
mariadb-conv
mariadb53_temporal
mysql5613mysql
mysql_json MDEV-18323 Convert MySQL JSON type to MariaDB TEXT in mysql_upgrade 2020-10-28 11:38:14 +02:00
mysql_upgrade
old_decimal
parts
rpl
temporal_upgrade
vcol_upgrade
zoneinfo
14897.frm
bad2_master.info
bad3_master.info
bad4_master.info
bad5_master.info
bad6_master.info
bad_gis_data.dat
bad_master.info
bad_row_type.frm
bad_row_type.MYD
bad_row_type.MYI
binlog-header.binlog
binlog_before_20574.bin
binlog_savepoint.000001
binlog_transaction.000001
bug15328.cnf
bug16266.000001
bug19371.frm
bug19371.MYD
bug19371.MYI
bug30435_5k.txt
bug30435_10k_items.txt
bug33029-slave-relay-bin.000001
bug35469.dat
bug36055.frm
bug36055.MYD
bug36055.MYI
bug37631.frm
bug37631.MYD
bug37631.MYI
bug40482-bin.000001
bug46565.ARZ
bug46565.frm
bug47012.ARM
bug47012.ARZ
bug47012.frm
bug47142_master-bin.000001
bug47205.frm
bug48265.frm
bug48449.frm
bug48633.ARM
bug48633.ARZ
bug48633.frm
bug49823.CSM
bug49823.CSV
bug49823.frm
bug887051.txt
bug11747416_32228_binlog.000001
bug16171518_1.dat
bug16171518_2.dat
cacert.pem
cakey.pem
charset_utf8.txt
checkDBI_DBD-MariaDB.pl
client-cert.crl
client-cert.pem
client-certkey.pem
client-key.pem
cluster_7022_table.frm
cluster_7022_table.MYD
cluster_7022_table.MYI
corrupt-relay-bin.000624
corrupt_t1#P#p1.MYI
corrupt_t1.MYI
des_key_file
empty_file
galera-cert.pem
galera-key.pem
galera-upgrade-ca-cert.pem
galera-upgrade-server-cert.pem
galera-upgrade-server-key.pem
host_old.frm
host_old.MYD
host_old.MYI
init_file.dat
init_file_longline_3816.sql
intersect-bug50389.tsv
keys.txt
keys2.txt
keys3.txt
loaddata1.dat
loaddata2.dat
loaddata3.dat
loaddata4.dat
loaddata5.dat
loaddata6.dat
loaddata7.dat
loaddata_dq.dat
loaddata_pair.dat
loaddata_utf8.dat
loadxml.dat
loadxml2.dat
logkey.txt
long_table_name.frm
long_table_name.MYD
long_table_name.MYI
mariadb-5.5-binlog.000001
master-bin.000001
mdev-4645-binlog_checksum.binlog
mdev-4645-binlog_group_id.binlog
mdev-4645-binlog_group_id_checksum.binlog
mdev-4645-binlog_none.binlog
mdev5029_1.frm
mdev5029_2.frm
mdev5029_2.MAD
mdev5029_2.MAI
mdev6020-mysql-bin.000001
mdev11084.frm
mdev11084.par
mdev11084.part1.MYD
mdev11084.part1.MYI
mdev17909#P#p20181029.MYD
mdev17909#P#p20181029.MYI
mdev17909#P#p20181128.MYD
mdev17909#P#p20181128.MYI
mdev17909.frm
mdev17909.par
Moscow_leap
mysql56datetime.frm
mysql56datetime.MYD
mysql56datetime.MYI
mysql56time.frm
mysql56time.MYD
mysql56time.MYI
mysql56timestamp.frm
mysql56timestamp.MYD
mysql56timestamp.MYI
mysql57_virtual.frm
mysql57_virtual.MYD
mysql57_virtual.MYI
mysql57user.frm MDEV-23201: mysql_upgrade order mysql.user for 5.7 cross-upgrade 2020-10-15 20:11:29 +11:00
mysql57user.MYD MDEV-23201: mysql_upgrade order mysql.user for 5.7 cross-upgrade 2020-10-15 20:11:29 +11:00
mysql57user.MYI MDEV-23201: mysql_upgrade order mysql.user for 5.7 cross-upgrade 2020-10-15 20:11:29 +11:00
mysql_database_5.5.dump
mysql_database_10.0.dump
mysql_database_10.1.dump
mysql_database_10.2.dump
mysql_database_10.3.dump
mysql_database_10.4.dump
new-format-relay-log-win.info
new-format-relay-log.info
numbers.txt
old-format-relay-log-win.info
old-format-relay-log.info
old_table-323.frm
onerow.xml
rpl_bug28618.dat
rpl_loaddata.dat
rpl_loaddata2.dat
rpl_mixed.dat
rpl_timezone.dat
rpl_timezone2.dat
s3_unique_table.frm
server-cert.crl
server-cert.pem
server-key.pem
server-new-cert.pem
server-new-key.pem
server8k-cert.pem
server8k-key.pem
serversan-cert.pem
serversan-key.pem
t917689.ARZ
trunc_binlog.000001
untrusted-cacert.pem
vchar.frm
vcol_autoinc.frm
vcol_autoinc.MYD
vcol_autoinc.MYI
warnings_loaddata.dat
wl5766_data.txt
words.dat
words2.dat
words3.dat
wsrep_notify.sh MDEV-21905: Galera test galera_var_notify_cmd causes hang 2020-07-24 12:05:39 +03:00