Bug #19427 | Description field is corrupted | ||
---|---|---|---|
Submitted: | 28 Apr 2006 16:55 | Modified: | 28 Jul 2006 21:32 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.0.22-BK, 5.0.18-nt | OS: | Linux (Linux, Windows 2003 Server) |
Assigned to: | Anjuta Widenius | CPU Architecture: | Any |
[28 Apr 2006 16:55]
[ name withheld ]
[28 Apr 2006 17:01]
Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.20a, and send the results. With 5.0.22 on Linux I've got on your test script: mysql> SHOW TABLE STATUS LIKE 'person'\G *************************** 1. row *************************** Name: person Engine: InnoDB Version: 10 Row_format: Compact Rows: 0 Avg_row_length: 0 Data_length: 16384 Max_data_length: 0 Index_length: 98304 Data_free: 0 Auto_increment: 1 Create_time: 2006-04-28 16:56:04 Update_time: NULL Check_time: NULL Collation: latin1_swedish_ci Checksum: NULL Create_options: Comment: InnoDB free: 463872 kB; (`BoroughTypeCode`) REFER `test/borough type`(`BoroughTyp 1 row in set (0.02 sec) mysql> select version(); +-----------+ | version() | +-----------+ | 5.0.22 | +-----------+ 1 row in set (0.00 sec) So, where is the bug here?
[28 Apr 2006 17:30]
[ name withheld ]
Someone asked what the problem was. Look at the Comment field in the Show Table status output It says: Comment: InnoDB free: 463872 kB; (`BoroughTypeCode`) REFER `test/borough it should say: Comment: InnoDB free: 463872 kB; I agree this is not a serious problem but I fear it is a sign of a wider problem since that same table caused problems in EMS's SqlManager whereas other tables did not
[29 Apr 2006 8:46]
Valeriy Kravchuk
Comment field really contains some garbage. It is a bug. Verified with 5.0.22-BK debug build on Linux.
[1 May 2006 12:26]
[ name withheld ]
Many thenks for verifying it
[28 Jul 2006 21:32]
Heikki Tuuri
This is not a bug. SHOW TABLE STATUS does list foreign key constraints in the comment field. mysql> CREATE TABLE child (id INT, parent_id INT, -> INDEX par_ind (parent_id), -> FOREIGN KEY (parent_id) REFERENCES parent(id) -> ON DELETE CASCADE -> ) ENGINE=INNODB; Query OK, 0 rows affected (0.03 sec) | child | InnoDB | 9 | Fixed | 0 | 0 | 16384 | NULL | 16384 | 0 | NULL | 2006-07-29 00:30:42 | NULL | NULL | latin1_swedish_ci | NULL | | InnoDB free: 0 kB; (`parent_id`) REFER `test/parent`(`id`) ON DELETE CASCADE |
[28 Jul 2006 21:58]
Paul DuBois
SHOW TABLE STATUS does list foreign key information in the Comment field. However, INFORMATION_SCHEMA.TABLES.TABLE_COMMENT is defined as VARCHAR(80) so that information can easily be truncated and appear to be incorrect. At least, it seems to me that's what's going on here.