Bug #25390 | UNIQUE Btree index on spatial column works in strange ways | ||
---|---|---|---|
Submitted: | 3 Jan 2007 16:39 | Modified: | 19 Apr 2008 18:29 |
Reporter: | Anders Karlsson | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S3 (Non-critical) |
Version: | 5.0.34-BK, 5.1.15-BK, 5.1.14, 4.1.23-BK | OS: | Linux (Linux) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[3 Jan 2007 16:39]
Anders Karlsson
[3 Jan 2007 19:06]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described with latest 5.0.34-BK on Linux: mysql> select version(); +--------------+ | version() | +--------------+ | 5.0.34-debug | +--------------+ 1 row in set (0.01 sec) mysql> drop table t1; Query OK, 0 rows affected (0.03 sec) mysql> CREATE TABLE t1(c1 POINT NOT NULL PRIMARY KEY); Query OK, 0 rows affected (0.02 sec) mysql> INSERT INTO t1 VALUES(GeomFromText('POINT(1 1)')); Query OK, 1 row affected (0.01 sec) mysql> INSERT INTO t1 VALUES(GeomFromText('POINT(1 2)')); ERROR 1062 (23000): Duplicate entry '' for key 1 mysql> drop table t1; Query OK, 0 rows affected (0.00 sec) mysql> CREATE TABLE t1(c1 POINT NOT NULL, PRIMARY KEY(c1(25))); Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t1 VALUES(GeomFromText('POINT(1 1)')); Query OK, 1 row affected (0.00 sec) mysql> INSERT INTO t1 VALUES(GeomFromText('POINT(1 2)')); ERROR 1062 (23000): Duplicate entry '' for key 1 mysql> show create table t1\G *************************** 1. row *************************** Table: t1 Create Table: CREATE TABLE `t1` ( `c1` point NOT NULL, PRIMARY KEY (`c1`(21)) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 1 row in set (0.00 sec)
[3 Jan 2007 19:42]
Valeriy Kravchuk
Verified on latest 4.1.23-BK and 5.1.15-BK also.
[17 Feb 2008 18:34]
Alexey Botchkov
I must say i can't repeat this bug in last 5.0 and 5.1 trees.
[17 Feb 2008 19:36]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/42460 ChangeSet@1.2706, 2008-02-17 23:28:32+04:00, holyfoot@mysql.com +3 -0 Bug #25390 UNIQUE Btree index on spatial column works in strange ways. Length for the GIS_POINT keyseg was 12, while the actual length of the field is 25. Handled separately as it's the only geometry type the length of which is known.
[18 Mar 2008 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[19 Mar 2008 18:29]
Susanne Ebrecht
Alexey, do you got feedback?
[19 Apr 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".