summaryrefslogtreecommitdiff
path: root/mysql-test/t/gis.test
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-09-26 14:55:52 +0500
committerunknown <hf@deer.(none)>2005-09-26 14:55:52 +0500
commit2616b6578703e0650510cee72d821cbe1a80efed (patch)
treea7fdb5773c287053a17d940cbbd86da7c2136cde /mysql-test/t/gis.test
parentddd18a89ad93929b4f57d78af7c8a92892ebfba3 (diff)
downloadmariadb-git-2616b6578703e0650510cee72d821cbe1a80efed.tar.gz
Fix for bug #12267 (primary key over GEOMETRY field)
mysql-test/r/gis.result: test result fixed mysql-test/t/gis.test: test case added sql/sql_table.cc: we should check this for GEOMETRY fields
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r--mysql-test/t/gis.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test
index aba2f33833a..1f30407c2b7 100644
--- a/mysql-test/t/gis.test
+++ b/mysql-test/t/gis.test
@@ -395,3 +395,11 @@ show create function fn3;
select astext(fn3());
drop function fn3;
+#
+# Bug #12267 (primary key over GIS)
+#
+create table t1(pt POINT);
+--error 1170
+alter table t1 add primary key pti(pt);
+alter table t1 add primary key pti(pt(20));
+drop table t1;