ekofedriyanto / common-schema

Automatically exported from code.google.com/p/common-schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_wrap_select_list_columns does not work properly on full qualified column names

GoogleCodeExporter opened this issue · comments


root@mysql-5.1.51> set @q := 'select City.name, City.population from world.City 
limit 10';

root@mysql-5.1.51> call _wrap_select_list_columns(@q, 2, @e);

root@mysql-5.1.51> select @q, @e;
+---------------------------------------------------------------+------+
| @q                                                            | @e   |
+---------------------------------------------------------------+------+
| select  City AS col1,  City. AS col2 from world.City limit 10 | NULL |
+---------------------------------------------------------------+------+

Original issue reported on code.google.com by shlomi.n...@gmail.com on 8 Jan 2013 at 12:04

This issue was closed by revision r415.

Original comment by shlomi.n...@gmail.com on 9 Jan 2013 at 9:41

  • Changed state: Fixed
Fixed in revision 415: now produces:

select  City.name AS col1,  City.population  AS col2 from world.City limit 10 ;


Original comment by shlomi.n...@gmail.com on 9 Jan 2013 at 9:42