mariadb/mysql-test/std_data
Alexander Barkov a53e087ea9 MDEV-14628 Wrong autoinc value assigned by LOAD XML in the NO_AUTO_VALUE_ON_ZERO mode
The fixes for these bugs:

Bug#27586 Wrong autoinc value assigned by LOAD DATA in the NO_AUTO_VALUE_ON_ZERO mode
Bug#22372 Disable spatial key, load data, enable spatial key, crashes table

fixed only LOAD DATA INFILE, but did not fix LOAD XML INFILE.

This patch does for LOAD XML FILE what patches for Bug#27586 and Bug#22372
earlier did for LOAD DATA INFILE.

1. Fixing the auto_increment problem:
   a. table->auto_increment_field_not_null is not set to TRUE
      anymore when a column does not have a corresponding XML tag.
   b. Adding "table->auto_increment_field_not_null= false"
      in the end of read_xml_field().
   These two changes resemble the patch for Bug#27586.

2. Fixing the GEOMETRY problem:
   The result for "reset()" was not tested for errors in read_xml_field(),
   which made it possible for empty string to sneak into a "GEOMETRY NOT NULL"
   column when this column does not have a corresponding XML tag with data.
   After this patch the result of reset() is tested and and an error is
   returned in such cases.
   This change effectively resembles the patch for Bug#22372

3. Spliting the code into a new virtual method Field::load_data_set_null().

   Rationale:
   a. To avoid duplicate code in read_sep_field() and read_xml_field():
      Changes #1 and #2 made the code handling NULL values for Field
      exactly the same in read_sep_field() and read_xml_field().

  b. To avoid tests for field_type(), which is not friendly to
     upcoming data type plugins.
     This change makes it possible for data type plugins
     to implement their own special way for handling NULL values in LOAD DATA
     by overriding Field_xxx::load_data_set_null(),
     like Field_geom and Field_timestamp do.
2017-12-13 13:22:45 +04: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 MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
ldml MDEV-11255 LDML: allow defining 2-level UCA collations 2016-11-08 20:57:19 +04:00
loaddata MDEV-14628 Wrong autoinc value assigned by LOAD XML in the NO_AUTO_VALUE_ON_ZERO mode 2017-12-13 13:22:45 +04:00
mysql5613mysql MDEV-4819 Upgrade from MySQL 5.6 does not work 2013-08-07 10:57:45 +04:00
mysql_upgrade Update tests for mysql_upgrade_view 2015-04-14 11:01:31 +10:00
old_decimal MDEV-7269 mysqlbinlog Don't know how to handle column type=0 meta=0 (0000)# 2015-06-04 18:49:12 +04:00
parts merge 2010-10-01 15:32:03 +02:00
temporal_upgrade MDEV-5297 TIME(0), TIMESTAMP(0) and DATETIME(0) are self-incompatible during replication (upstream) 2013-12-06 19:02:55 +04:00
zoneinfo MDEV-5226 mysql_tzinfo_to_sql errors with tzdata 2013f and above 2013-11-13 18:26:03 +04:00
14897.frm A fix for Bug#14897 "ResultSet.getString("table.column") sometimes 2006-08-30 00:38:58 +04:00
bad2_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad3_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad4_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad5_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad6_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad_gis_data.dat bug #22372 2006-12-06 21:47:29 +04:00
bad_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad_row_type.frm MDEV-7333 "'show table status like 'table_name'" on tokudb table lead to MariaDB crash 2015-01-13 19:27:28 +01:00
bad_row_type.MYD MDEV-7333 "'show table status like 'table_name'" on tokudb table lead to MariaDB crash 2015-01-13 19:27:28 +01:00
bad_row_type.MYI MDEV-7333 "'show table status like 'table_name'" on tokudb table lead to MariaDB crash 2015-01-13 19:27:28 +01:00
binlog-header.log Galera MTR Tests: Tests for GRA*.log files, replication bundle, preordered events, forced binlog format 2015-09-09 22:42:42 -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
bug16171518_1.dat Bug #16171518 - LOAD XML DOES NOT HANDLE EMPTY ELEMENTS 2015-08-18 12:24:27 +05:30
bug16171518_2.dat Bug #16171518 - LOAD XML DOES NOT HANDLE EMPTY ELEMENTS 2015-08-18 12:24:27 +05:30
ca-cert-verify.pem Bug #22295186: CERTIFICATE VALIDATION BUG IN MYSQL MAY ALLOW MITM 2016-01-11 07:09:13 +05:30
cacert.pem regenerate SSL certificates again 2017-04-27 19:12:44 +02:00
cakey.pem regenerate SSL certificates again 2017-04-27 19:12:44 +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 mysql-5.5.39 merge 2014-08-02 21:26:16 +02:00
client-cert.pem regenerate SSL certificates again 2017-04-27 19:12:44 +02:00
client-key.pem regenerate SSL certificates again 2017-04-27 19:12:44 +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 Added FLUSH DES_KEY_FILE. 2001-12-13 15:53:18 +02:00
empty_file Add an empty file to std_data for future testing purposes 2016-03-22 22:20:33 +02:00
galera-cert.pem Galera MTR Tests: Instruct xtrabackup SST's socat to use 1024-bit DH keys to avoid 'error:14082174:SSL routines:SSL3_CHECK_CERT_AND_ALGORITHM:dh key too small' 2015-09-09 23:08:02 -04:00
galera-key.pem Merge branch '10.0-galera' into 10.1 2015-07-14 16:05:29 -04:00
galera-upgrade-ca-cert.pem Galera MTR Tests: various tests and test fixes 2015-09-09 22:31:06 -04:00
galera-upgrade-server-cert.pem Galera MTR Tests: various tests and test fixes 2015-09-09 22:31:06 -04:00
galera-upgrade-server-key.pem Galera MTR Tests: various tests and test fixes 2015-09-09 22:31:06 -04:00
host_old.frm Fix for MDEV-5547: Bad error message when moving very old .frm files to MariaDB 5.5. 2014-01-22 15:16:57 +02:00
host_old.MYD Fix for MDEV-5547: Bad error message when moving very old .frm files to MariaDB 5.5. 2014-01-22 15:16:57 +02:00
host_old.MYI Fix for MDEV-5547: Bad error message when moving very old .frm files to MariaDB 5.5. 2014-01-22 15:16:57 +02: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
keys.txt MDEV-12253: Buffer pool blocks are accessed after they have been freed 2017-04-26 15:19:16 +03:00
keys2.txt MDEV-12253: Buffer pool blocks are accessed after they have been freed 2017-04-26 15:19:16 +03:00
keys3.txt MDEV-12253: Buffer pool blocks are accessed after they have been freed 2017-04-26 15:19:16 +03: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 test case for loadxml and spaces 2017-07-18 14:59:33 +02:00
loadxml2.dat WL#1397 convert XML -> SQL 2009-10-12 11:22:53 +05:00
logkey.txt MDEV-9011: Redo log encryption does not work 2015-10-30 13:12:30 +02: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
mariadb-5.5-binlog.000001 MDEV-5769: Slave crashes on attempt to do parallel replication from an older master 2014-03-04 08:48:32 +01: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
mdev6020-mysql-bin.000001 MDEV-5262, MDEV-5914, MDEV-5941, MDEV-6020: Deadlocks during parallel 2014-06-03 10:31:11 +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
mysql57_virtual.frm MDEV-7563 Support CHECK constraint as in (or close to) SQL Standard 2016-06-30 11:43:02 +02:00
mysql57_virtual.MYD MDEV-7563 Support CHECK constraint as in (or close to) SQL Standard 2016-06-30 11:43:02 +02:00
mysql57_virtual.MYI MDEV-7563 Support CHECK constraint as in (or close to) SQL Standard 2016-06-30 11:43:02 +02:00
new-format-relay-log-win.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +02:00
new-format-relay-log.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +02:00
numbers.txt System variable tests delivered by Folio3 (see WL4288). 2008-04-10 15:14:28 +02:00
old-format-relay-log-win.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +02:00
old-format-relay-log.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +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-verify-fail.pem Bug #22295186: CERTIFICATE VALIDATION BUG IN MYSQL MAY ALLOW MITM 2016-01-11 07:09:13 +05:30
server-cert-verify-pass.pem Bug #22295186: CERTIFICATE VALIDATION BUG IN MYSQL MAY ALLOW MITM 2016-01-11 07:09:13 +05:30
server-cert.pem regenerate SSL certificates again 2017-04-27 19:12:44 +02:00
server-key-verify-fail.pem Bug #22295186: CERTIFICATE VALIDATION BUG IN MYSQL MAY ALLOW MITM 2016-01-11 07:09:13 +05:30
server-key-verify-pass.pem Bug #22295186: CERTIFICATE VALIDATION BUG IN MYSQL MAY ALLOW MITM 2016-01-11 07:09:13 +05:30
server-key.pem regenerate SSL certificates again 2017-04-27 19:12:44 +02:00
server8k-cert.pem regenerate SSL certificates again 2017-04-27 19:12:44 +02:00
server8k-key.pem regenerate SSL certificates again 2017-04-27 19:12:44 +02:00
serversan-cert.pem MDEV-10594 SSL hostname verification fails for SubjectAltNames 2017-04-27 19:12:44 +02:00
serversan-key.pem MDEV-10594 SSL hostname verification fails for SubjectAltNames 2017-04-27 19:12:44 +02: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
vcol_autoinc.frm MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns 2017-07-05 17:15:58 +02:00
vcol_autoinc.MYD MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns 2017-07-05 17:15:58 +02:00
vcol_autoinc.MYI MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns 2017-07-05 17:15:58 +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
wsrep_notify.sh Merge branch '10.0-galera' into 10.1 2015-07-14 16:05:29 -04:00