summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
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 /sql/sql_yacc.yy
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 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 14f617b9f8b..316564f52f7 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -2969,7 +2969,9 @@ type:
spatial_type:
GEOMETRY_SYM { $$= Field::GEOM_GEOMETRY; }
| GEOMETRYCOLLECTION { $$= Field::GEOM_GEOMETRYCOLLECTION; }
- | POINT_SYM { $$= Field::GEOM_POINT; }
+ | POINT_SYM { Lex->length= (char*)"21";
+ $$= Field::GEOM_POINT;
+ }
| MULTIPOINT { $$= Field::GEOM_MULTIPOINT; }
| LINESTRING { $$= Field::GEOM_LINESTRING; }
| MULTILINESTRING { $$= Field::GEOM_MULTILINESTRING; }