mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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
This commit is contained in:
@ -682,6 +682,9 @@ POINT(1 1)
|
||||
drop function fn3;
|
||||
create table t1(pt POINT);
|
||||
alter table t1 add primary key pti(pt);
|
||||
drop table t1;
|
||||
create table t1(pt GEOMETRY);
|
||||
alter table t1 add primary key pti(pt);
|
||||
ERROR 42000: BLOB/TEXT column 'pt' used in key specification without a key length
|
||||
alter table t1 add primary key pti(pt(20));
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user