From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/main/gis-loaddata.result | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mysql-test/main/gis-loaddata.result (limited to 'mysql-test/main/gis-loaddata.result') diff --git a/mysql-test/main/gis-loaddata.result b/mysql-test/main/gis-loaddata.result new file mode 100644 index 00000000..1d25c0a4 --- /dev/null +++ b/mysql-test/main/gis-loaddata.result @@ -0,0 +1,25 @@ +# +# MDEV-15497 Wrong empty value in a GEOMETRY column on LOAD DATA +# +SET sql_mode=''; +CREATE TABLE t1 (id INT, a GEOMETRY NOT NULL); +LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1; +ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'a' at row 1 +LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1 FIELDS TERMINATED BY ''; +ERROR 22004: Column set to default value; NULL supplied to NOT NULL column 'a' at row 1 +DROP TABLE t1; +CREATE TABLE t1 (id INT, a GEOMETRY); +LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1; +Warnings: +Warning 1261 Row 1 doesn't contain data for all columns +SELECT * FROM t1; +id a +1 NULL +TRUNCATE TABLE t1; +LOAD DATA INFILE '../../std_data/loaddata/mdev-15497.txt' INTO TABLE t1 FIELDS TERMINATED BY ''; +Warnings: +Warning 1261 Row 1 doesn't contain data for all columns +SELECT * FROM t1; +id a +1 NULL +DROP TABLE t1; -- cgit v1.2.3