Bug #14861 | aliased column names are not preserved. | ||
---|---|---|---|
Submitted: | 11 Nov 2005 11:35 | Modified: | 21 Dec 2005 10:38 |
Reporter: | Anthony Milbourne | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.17-BK, 5.0.15 | OS: | Linux (Linux, Windows) |
Assigned to: | Sergei Glukhov | CPU Architecture: | Any |
[11 Nov 2005 11:35]
Anthony Milbourne
[11 Nov 2005 12:27]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described on 5.0.17-BK (ChangeSet@1.1967, 2005-11-11 13:39:46+04:00, ...) on Linux: mysql> insert into t_receipt (id, warehouse_id, order_id, product_id, quantity) -> values(1, 1, 'ORD-1000', 'PROD-001', 45); Query OK, 1 row affected (0.01 sec) mysql> insert into t_receipt (id, warehouse_id, order_id, product_id, quantity) -> values(2, 1, 'ORD-1000', 'PROD-002', 20); Query OK, 1 row affected (0.00 sec) mysql> select v_receipt_item.id, v_receipt_item.warehouse_receipt_id as alias1, -> v_receipt_item.warehouse_receipt_id as alias2 from v_receipt_item order by -> v_receipt_item.id; +----+--------+--------+ | id | alias1 | alias2 | +----+--------+--------+ | 1 | 1 | 1 | | 2 | 1 | 1 | +----+--------+--------+ 2 rows in set (0.01 sec) mysql> insert into t_receipt (id, warehouse_id, order_id, product_id, quantity) -> values(3, 2, 'ORD-1000', 'PROD-001', 10); Query OK, 1 row affected (0.01 sec) mysql> insert into t_receipt (id, warehouse_id, order_id, product_id, quantity) -> values(4, 2, 'ORD-1000', 'PROD-002', 7); Query OK, 1 row affected (0.01 sec) mysql> insert into t_receipt (id, warehouse_id, order_id, product_id, quantity) -> values(5, 1, 'ORD-1001', 'PROD-001', 50); Query OK, 1 row affected (0.00 sec) mysql> insert into t_receipt (id, warehouse_id, order_id, product_id, quantity) -> values(6, 1, 'ORD-1001', 'PROD-002', 15); Query OK, 1 row affected (0.00 sec) mysql> select v_receipt_item.id, v_receipt_item.warehouse_receipt_id as alias1, v_receipt_item.warehouse_receipt_id as alias2 from v_receipt_item order by v_receipt_item.id; +----+--------+--------+ | id | alias2 | alias2 | +----+--------+--------+ | 1 | 1 | 1 | | 2 | 1 | 1 | | 3 | 3 | 3 | | 4 | 3 | 3 | | 5 | 5 | 5 | | 6 | 5 | 5 | +----+--------+--------+ 6 rows in set (0.01 sec) mysql> select version(); +-----------+ | version() | +-----------+ | 5.0.17 | +-----------+ 1 row in set (0.00 sec)
[5 Dec 2005 10:47]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/33017
[19 Dec 2005 11:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/245
[19 Dec 2005 11:32]
Sergei Glukhov
Fixed in 5.0.18
[21 Dec 2005 10:38]
Jon Stephens
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. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Documented in 5.0.18 changelog. Closed.