summaryrefslogtreecommitdiff
path: root/mysql-test/t/gis.test
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-10-15 22:23:13 +0500
committerunknown <hf@deer.(none)>2005-10-15 22:23:13 +0500
commitc2b9856333492cb0cec495f50c884be92b75c918 (patch)
tree887efcf729ae0a457db2d828e44d131a9813650f /mysql-test/t/gis.test
parent56d85e2a03cfaa50939f8c5167f996b2a498770e (diff)
downloadmariadb-git-c2b9856333492cb0cec495f50c884be92b75c918.tar.gz
Additional fix for bug #12267 (Can't use POINT for primary key)
mysql-test/r/gis.result: result fixed mysql-test/t/gis.test: testcase added sql/sql_table.cc: no need to specify keylength for Point type sql/sql_yacc.yy: no need to specify length for Point type
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r--mysql-test/t/gis.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test
index 1f30407c2b7..142bd29fa2d 100644
--- a/mysql-test/t/gis.test
+++ b/mysql-test/t/gis.test
@@ -399,6 +399,9 @@ drop function fn3;
# Bug #12267 (primary key over GIS)
#
create table t1(pt POINT);
+alter table t1 add primary key pti(pt);
+drop table t1;
+create table t1(pt GEOMETRY);
--error 1170
alter table t1 add primary key pti(pt);
alter table t1 add primary key pti(pt(20));