diff options
author | unknown <hf@deer.(none)> | 2005-09-26 14:55:52 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-09-26 14:55:52 +0500 |
commit | 2616b6578703e0650510cee72d821cbe1a80efed (patch) | |
tree | a7fdb5773c287053a17d940cbbd86da7c2136cde /mysql-test/r/gis.result | |
parent | ddd18a89ad93929b4f57d78af7c8a92892ebfba3 (diff) | |
download | mariadb-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/r/gis.result')
-rw-r--r-- | mysql-test/r/gis.result | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index 78014137b50..2748199efad 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -680,3 +680,8 @@ select astext(fn3()); astext(fn3()) POINT(1 1) drop function fn3; +create table t1(pt POINT); +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; |