Browse Source
Bug#34749: Server crash when using NAME_CONST() with an aggregate function
Bug#34749: Server crash when using NAME_CONST() with an aggregate function
NAME_CONST('whatever', -1) * MAX(whatever) bombed since -1 was
not seen as constant, but as FUNCTION_UNARY_MINUS(constant)
while we are at the same time pretending it was a basic const
item. This confused the aggregate handlers in exciting ways.
We now make NAME_CONST() behave more consistently.
pull/73/head
7 changed files with 74 additions and 14 deletions
-
19mysql-test/r/func_misc.result
-
18mysql-test/t/func_misc.test
-
9sql/ha_ndbcluster_cond.cc
-
1sql/ha_ndbcluster_cond.h
-
27sql/item.cc
-
9sql/item.h
-
5sql/item_func.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue