summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
authortimour@mysql.com <>2004-11-02 18:23:15 +0200
committertimour@mysql.com <>2004-11-02 18:23:15 +0200
commit09f1c7096c354843ad75db94c0a7116c0a967986 (patch)
treef36fd67db9dbc59a015a4fa4d848db945a5c8bd9 /sql/sql_help.cc
parent9161669492563cc99d2bae22c17fa0ca7874352f (diff)
downloadmariadb-git-09f1c7096c354843ad75db94c0a7116c0a967986.tar.gz
WL#1972 "Evaluate HAVING before SELECT select-list"
- Changed name resolution for GROUP BY so that derived columns do not shadow table columns from the FROM clause. As a result GROUP BY now is handled as a true ANSI extentsion. - Issue a warning when HAVING is resolved into ambiguous columns, and prefer the columns from the GROUP BY clause over SELECT columns.
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index cba74c93a6a..62ee708b695 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -88,7 +88,7 @@ static bool init_fields(THD *thd, TABLE_LIST *tables,
Item_field *field= new Item_field("mysql", find_fields->table_name,
find_fields->field_name);
if (!(find_fields->field= find_field_in_tables(thd, field, tables,
- 0, TRUE, 1)))
+ 0, REPORT_ALL_ERRORS, 1)))
DBUG_RETURN(1);
}
DBUG_RETURN(0);