Bug #14238 | fill_help_tables.sql Error 1264 | ||
---|---|---|---|
Submitted: | 23 Oct 2005 13:57 | Modified: | 21 Nov 2005 19:20 |
Reporter: | Michael Rilling | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.13-rc-nt-max, 5.0.13-rc | OS: | Windows (Windows, Linux) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[23 Oct 2005 13:57]
Michael Rilling
[23 Oct 2005 14:36]
Valeriy Kravchuk
Thank you for a problem report. Indeed, column is defined as unsigned: mysql> select version(); +--------------+ | version() | +--------------+ | 5.0.13-rc-nt | +--------------+ 1 row in set (0.03 sec) mysql> use mysql Database changed mysql> desc help_category; +--------------------+----------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------------+----------------------+------+-----+---------+-------+ | help_category_id | smallint(5) unsigned | NO | PRI | | | | name | char(64) | NO | UNI | | | | parent_category_id | smallint(5) unsigned | YES | | NULL | | | url | char(128) | NO | | | | +--------------------+----------------------+------+-----+---------+-------+ 4 rows in set (0.32 sec) But line 23 in the fill_help_tables.sql (both on Windows and on Linux) is the following: insert into help_category (help_category_id,name,parent_category_id) values (15,"Contents",-1),(16,"Point properties",24),(17,"Encryption Functions",22),(18,"LineString properties",24),(19,"Geometry properties",24),(20,"Logical operators",22),(21,"Miscellaneous Functions",22),(22,"Functions",15),(23,"String Functions", 22),(24,"Geographic features",15),(25,"Information Functions",22),(26,"Comparison operators",22),(27,"Bit unctions",22),(28,"Data Definition",15); So, either table definition or the script should be changed.
[23 Oct 2005 18:23]
Michael Rilling
Interesting, in 4.1.14-nt the script works by mysql silently changing the "-1" to a "0". In 5.0.13-rc-nt-max when running the script you get the error 1264 stating "Out of range value adjusted ...", but that sql segment on line 23 still fails to insert.
[21 Nov 2005 19:20]
Paul DuBois
fill_help_tables_sql for future releases of MySQL will not contain negative category values.