1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fixed problem with ansi mode and GROUP BY with constants. (Bug #387)

This commit is contained in:
monty@narttu.mysql.fi
2003-05-13 19:26:07 +03:00
parent 13530887cb
commit 2693203a08
4 changed files with 30 additions and 1 deletions

View File

@@ -6668,7 +6668,8 @@ setup_group(THD *thd,TABLE_LIST *tables,List<Item> &fields,
while ((item=li++))
{
if (item->type() != Item::SUM_FUNC_ITEM && !item->marker)
if (item->type() != Item::SUM_FUNC_ITEM && !item->marker &&
!item->const_item())
{
my_printf_error(ER_WRONG_FIELD_WITH_GROUP,
ER(ER_WRONG_FIELD_WITH_GROUP),