summaryrefslogtreecommitdiff
path: root/mysql-test/t/gis.test
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-02-12 15:41:36 +0400
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-02-12 15:41:36 +0400
commit8299b596ae9feb5897f19aa34eca71443aae0741 (patch)
tree7dd961ed670d0d28d50bea67201109c50e9296ff /mysql-test/t/gis.test
parentd1185aaeafb9b34729db600160760a5dd7c59511 (diff)
downloadmariadb-git-8299b596ae9feb5897f19aa34eca71443aae0741.tar.gz
bug #20691 (INSERT (DEFAULT) may insert garbage with NO DEFAULT NOT NULL field)
Some fields (GEOMETRY first of all) can't be handled properly in this case at all. So we return an error in this case
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r--mysql-test/t/gis.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test
index 95fdf642b94..ff9fcad1fcf 100644
--- a/mysql-test/t/gis.test
+++ b/mysql-test/t/gis.test
@@ -428,3 +428,12 @@ drop table t1;
create table t1 select GeomFromText('point(1 1)');
desc t1;
drop table t1;
+
+#
+# Bug #20691 (DEFAULT over NOT NULL field)
+#
+create table t1 (g geometry not null);
+--error ER_CANT_CREATE_GEOMETRY_OBJECT
+insert into t1 values(default);
+drop table t1;
+