1
0
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)

This commit is contained in:
hf@deer.(none)
2005-10-15 22:23:13 +05:00
parent 7fb1ffd07e
commit 9910198aaf
4 changed files with 12 additions and 1 deletions

View File

@ -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;