Bug #10239 | Views don't allow column aliases | ||
---|---|---|---|
Submitted: | 28 Apr 2005 18:05 | Modified: | 1 May 2005 7:08 |
Reporter: | leeann pultz | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5 beta | OS: | Windows (Windows (all?)) |
Assigned to: | CPU Architecture: | Any |
[28 Apr 2005 18:05]
leeann pultz
[1 May 2005 7:08]
Jorge del Conde
I was unable to reproduce this in 5.0.5 from bk: mysql> SELECT * FROM tmp; +------+------+ | id | str | +------+------+ | 1 | ' | | 1 | '' | | 1 | ''' | | 1 | '''' | +------+------+ 4 rows in set (0.00 sec) mysql> CREATE VIEW tmp_view AS SELECT id as id_alias, str as str_alias, id, str FROM tmp; Query OK, 0 rows affected (0.00 sec) mysql> SELECT * FROM tmp_view; +----------+-----------+------+------+ | id_alias | str_alias | id | str | +----------+-----------+------+------+ | 1 | ' | 1 | ' | | 1 | '' | 1 | '' | | 1 | ''' | 1 | ''' | | 1 | '''' | 1 | '''' | +----------+-----------+------+------+ 4 rows in set (0.00 sec)
[6 May 2005 18:38]
leeann pultz
Ah! I was unclear: I was unable to reproduce this in 5.0.5 from bk: mysql> SELECT id id_alias, str str_alias FROM tmp; +------+------+ | id_alias | str_alias | +------+------+ | 1 | ' | | 1 | '' | | 1 | ''' | | 1 | '''' | +------+------+ 4 rows in set (0.00 sec) mysql> CREATE VIEW tmp_view AS SELECT id, str FROM tmp; Query OK, 0 rows affected (0.00 sec) mysql> SELECT id id_alias, str str_alias FROM tmp_view; +----------+- | id | str | +----------+ | 1 | ' | | 1 | '' | | 1 | ''' | | 1 | '''' | +----------+-----------+------+------+ 4 rows in set (0.00 sec)