Bug #21708 | Simple query on table with spatial index crashes the server | ||
---|---|---|---|
Submitted: | 18 Aug 2006 4:51 | Modified: | 18 Aug 2006 11:33 |
Reporter: | David Kornmann | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.17-nt | OS: | |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
Tags: | crash, server, spatial index |
[18 Aug 2006 4:51]
David Kornmann
[18 Aug 2006 11:33]
MySQL Verification Team
Thank you for the bug report. The server version you are reporting it was able for to create the table like 5.0.18: c:\mysql\bin>mysql -uroot test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.18-nt Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE TABLE `boundary` ( -> `ID` int(10) unsigned NOT NULL auto_increment, -> `code` smallint(5) unsigned NOT NULL, -> `Shape` geometry NOT NULL, -> `mbr` polygon NOT NULL, -> PRIMARY KEY (`ID`), -> UNIQUE KEY `code` (`code`), -> SPATIAL KEY `mbr` (`mbr`(32)) -> ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; Query OK, 0 rows affected (0.13 sec) however currently with version 5.0.24 (latest release) isn't more supported: c:\mysql\bin>mysql -uroot test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.24-community-nt Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE TABLE `boundary` ( -> `ID` int(10) unsigned NOT NULL auto_increment, -> `code` smallint(5) unsigned NOT NULL, -> `Shape` geometry NOT NULL, -> `mbr` polygon NOT NULL, -> PRIMARY KEY (`ID`), -> UNIQUE KEY `code` (`code`), -> SPATIAL KEY `mbr` (`mbr`(32)) -> ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; ERROR 1464 (HY000): The used table type doesn't support SPATIAL indexes could you please upgrade and dump/restore as MyISAM table. If you still get the crash, please re-open this bug report. Thanks in advance.