Bug #33198 | View Corrupted When Created Using Hexadecimal / Bit-Field Literals | ||
---|---|---|---|
Submitted: | 13 Dec 2007 5:38 | Modified: | 13 Dec 2007 12:48 |
Reporter: | Asuka Kenji Siu Ching Pong (Basic Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S2 (Serious) |
Version: | 5.0.50-enterprise-gpl-nt, 5.0.51 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | CHAR(), create view, qc |
[13 Dec 2007 5:38]
Asuka Kenji Siu Ching Pong
[13 Dec 2007 5:41]
Asuka Kenji Siu Ching Pong
Test case in MySQL test case format
Attachment: bug33198.test (application/octet-stream, text), 1.40 KiB.
[13 Dec 2007 5:57]
Asuka Kenji Siu Ching Pong
Mis-spelt the word "Corrupted" as "Corruptted" in the "Synopsis" above. Fixed.
[13 Dec 2007 9:58]
Asuka Kenji Siu Ching Pong
The root cause of this bug may be the bug described in bug #33205.
[13 Dec 2007 10:17]
Asuka Kenji Siu Ching Pong
It is found that if the hexadecimal literals are replaced by bit-field literals in the form b'1010' and 0b1010, similar problems also occur.
[13 Dec 2007 11:49]
Susanne Ebrecht
Verified as described with MySQL 5.0.51. For example: mysql> CREATE VIEW test.t1 AS SELECT CHAR(0x41); Query OK, 0 rows affected (0.03 sec) mysql> SELECT * FROM test.t1; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '???) AS `CHAR(0x41)`' at line 1
[13 Dec 2007 12:48]
Asuka Kenji Siu Ching Pong
Seems fixed in 5.0.52-enterprise-gpl-nt.
[14 Dec 2007 12:18]
Susanne Ebrecht
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release (Community server). This issue has already been fixed in the latest released enterprise version. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html