Fixed bug with GROUP BY and alias

mysql-test/r/group_by.result:
  Test for group by + alias bug
mysql-test/t/group_by.test:
  Test for group by + alias bug
This commit is contained in:
unknown 2003-03-25 13:06:20 +02:00
commit 829045100d
3 changed files with 32 additions and 0 deletions

View file

@ -665,6 +665,7 @@ bool Item_ref::fix_fields(THD *thd,TABLE_LIST *tables)
maybe_null= (*ref)->maybe_null;
decimals= (*ref)->decimals;
binary= (*ref)->binary;
with_sum_func= (*ref)->with_sum_func;
}
return 0;
}