summaryrefslogtreecommitdiff
path: root/mysql-test/r/gis2.result
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-10-11 11:57:26 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-10-11 11:57:26 +0400
commitfe0d2e1a2b8069b0d8f0560aacb2cc9543b3951b (patch)
tree65f56f1063823ec278768ed0c77c9993367c45e6 /mysql-test/r/gis2.result
parentdd85ec6f28b9b5f94188e4a1b907e3a17d6b647c (diff)
downloadmariadb-git-fe0d2e1a2b8069b0d8f0560aacb2cc9543b3951b.tar.gz
MDEV-13923 Assertion `!is_set() || (m_status == DA_OK_BULK &&
is_bulk_op())' failed upon altering table with geometry field. Check for the validity of the DEFAULT value for the geometry field.
Diffstat (limited to 'mysql-test/r/gis2.result')
-rw-r--r--mysql-test/r/gis2.result24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/gis2.result b/mysql-test/r/gis2.result
index 214431e1d2d..2d5ae9abf73 100644
--- a/mysql-test/r/gis2.result
+++ b/mysql-test/r/gis2.result
@@ -12,3 +12,27 @@ WHERE ST_Contains(point_data, GeomFromText('Point(38.0248492 23.8512726)'));
id
2
DROP TABLE t1;
+create table t1 (p point default "qwer");
+ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
+create table t1 (p point default 0);
+ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
+create table t1 (p point not null default st_geometryfromtext('point 0)'));
+ERROR 42000: Invalid default value for 'p'
+create table t1 (p point not null default st_geometryfromtext('point(0 0)'));
+insert into t1 values(default);
+select st_astext(p) from t1;
+st_astext(p)
+POINT(0 0)
+drop table t1;
+create table t1 (p point not null default if(unix_timestamp()>10,POINT(1,1),0));
+set timestamp=10;
+insert into t1 values(default);
+ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
+drop table t1;
+SET timestamp=default;
+create table t1 (p point not null default if(unix_timestamp()>10,POINT(1,1),0));
+set timestamp=10;
+alter table t1 add column i int;
+ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
+drop table t1;
+SET timestamp=default;