| Bug #75471 | Views that use hex literals fails | ||
|---|---|---|---|
| Submitted: | 9 Jan 2015 17:29 | Modified: | 25 Nov 2019 22:22 |
| Reporter: | Chris Herridge | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: DML | Severity: | S1 (Critical) |
| Version: | 5.1/5.5/5.6/5.7 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | hex, literal, VIEW | ||
[9 Jan 2015 17:29]
Chris Herridge
[10 Jan 2015 22:47]
MySQL Verification Team
mysql 5.6 > SELECT Title,sizes.Name Size,colours.Name Colour FROM test.items
-> JOIN (items_has_props linkSizes, props sizes)
-> ON
-> (
-> linkSizes.items_iditems = iditems
-> AND
-> linkSizes.props_idprops = sizes.idprops
-> AND
-> sizes.proptypes_idproptypes = 0x63C9FB50981E11E48B8250465DAC27FE
-> )
-> JOIN (items_has_props linkColours, props colours)
-> ON
-> (
-> linkColours.items_iditems = iditems
-> AND
-> linkColours.props_idprops = colours.idprops
-> AND
-> colours.proptypes_idproptypes = 0x60E6AC38981E11E48B8250465DAC27FE
-> )
-> ;
+-------------------------+--------+--------+
| Title | Size | Colour |
+-------------------------+--------+--------+
| My Small Red Product | Small | Red |
| My Large Red Product | Large | Red |
| My Medium Green Product | Medium | Green |
| My Large Green Product | Large | Green |
| My Small Blue Product | Small | Blue |
+-------------------------+--------+--------+
5 rows in set (0.00 sec)
mysql 5.6 > create view myView2 AS
-> SELECT Title,sizes.Name Size,colours.Name Colour FROM test.items
-> JOIN (items_has_props linkSizes, props sizes)
-> ON
-> (
-> linkSizes.items_iditems = iditems
-> AND
-> linkSizes.props_idprops = sizes.idprops
-> AND
-> sizes.proptypes_idproptypes = 0x63C9FB50981E11E48B8250465DAC27FE
-> )
-> JOIN (items_has_props linkColours, props colours)
-> ON
-> (
-> linkColours.items_iditems = iditems
-> AND
-> linkColours.props_idprops = colours.idprops
-> AND
-> colours.proptypes_idproptypes = 0x60E6AC38981E11E48B8250465DAC27FE
-> );
Query OK, 0 rows affected (0.08 sec)
mysql 5.6 > select * from myView2;
Empty set (0.00 sec)
mysql 5.6 > SHOW VARIABLES LIKE "%VERSION%";
+-------------------------+--------------------------------------+
| Variable_name | Value |
+-------------------------+--------------------------------------+
| innodb_version | 5.6.23 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.6.23 |
| version_comment | Source distribution Clone 2015-01-10 |
| version_compile_machine | x86_64 |
| version_compile_os | Win64 |
+-------------------------+--------------------------------------+
7 rows in set (0.00 sec)
[10 Jan 2015 22:59]
MySQL Verification Team
Thank you for the bug report. Repeatable since 5.1 server.
[25 Nov 2019 22:22]
Roy Lyseng
Posted by developer: Fixed in 5.7
