1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge host.loc:/home/uchum/work/5.0-opt

into  host.loc:/home/uchum/work/5.1-opt
This commit is contained in:
gshchepa/uchum@host.loc
2008-03-27 00:51:29 +04:00
3 changed files with 49 additions and 0 deletions

View File

@ -16502,6 +16502,14 @@ void st_select_lex::print(THD *thd, String *str, enum_query_type query_type)
/* go through join tree */
print_join(thd, str, &top_join_list, query_type);
}
else if (where)
{
/*
"SELECT 1 FROM DUAL WHERE 2" should not be printed as
"SELECT 1 WHERE 2": the 1st syntax is valid, but the 2nd is not.
*/
str->append(STRING_WITH_LEN(" from DUAL "));
}
// Where
Item *cur_where= where;