diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-05-08 19:23:39 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-05-09 00:28:43 +0200 |
commit | fbdf18f86e3a631034800eb534f29f615ff7a1a4 (patch) | |
tree | 9bf3245f5b2c6b283453a7fd844580127f3afc9d /mysql-test/t | |
parent | d738722eeee34df67081f8afe5ccd5d28c1e275f (diff) | |
download | mariadb-git-fbdf18f86e3a631034800eb534f29f615ff7a1a4.tar.gz |
MDEV-12696 Crash with LOAD XML and non-updatable VIEW column
extend the fix from 5.5 (in read_sep_field()) to apply to read_xml_field()
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/loadxml.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/loadxml.test b/mysql-test/t/loadxml.test index 93e6e82189f..0bd97a81649 100644 --- a/mysql-test/t/loadxml.test +++ b/mysql-test/t/loadxml.test @@ -130,3 +130,16 @@ CREATE TABLE t1 (col1 VARCHAR(3), col2 VARCHAR(3), col3 INTEGER); LOAD XML INFILE '../../std_data/bug16171518_2.dat' INTO TABLE t1; SELECT * FROM t1 ORDER BY col1, col2, col3; DROP TABLE t1; + +--echo # +--echo # MDEV-12696 Crash with LOAD XML and non-updatable VIEW column +--echo # + +CREATE TABLE t1 (c1 TEXT); +CREATE VIEW v1 AS SELECT CONCAT(c1,'') AS c1, NULL AS c2 FROM t1; +--error ER_NONUPDATEABLE_COLUMN +LOAD XML INFILE '../../std_data/loaddata/mdev12696.xml' INTO TABLE v1 (c1); +--error ER_NONUPDATEABLE_COLUMN +LOAD XML INFILE '../../std_data/loaddata/mdev12696.xml' INTO TABLE v1 (c2); +DROP VIEW v1; +DROP TABLE t1; |