summaryrefslogtreecommitdiff
path: root/mysys/errors.c
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-12-08 14:28:06 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-12-08 14:28:06 +0200
commit4e9fb2c76f65e9949ebd3bbe2608f6a3b80a3822 (patch)
tree843cd564016bb7ea84119c7bbc818afe1b4cd412 /mysys/errors.c
parent703014b807b6971e07c244c662a070bb6700581a (diff)
downloadmariadb-git-4e9fb2c76f65e9949ebd3bbe2608f6a3b80a3822.tar.gz
Bug #57954: BIT_AND function returns incorrect results
when semijoin=on When setting the aggregate function as having no rows to report the function no_rows_in_result() was calling Item_sum::reset(). However this function in addition to cleaning up the aggregate value by calling aggregator_clear() was also adding the current value to the aggregate value by calling aggregator_add(). Fixed by making no_rows_in_result() to call aggregator_clear() directly. Renamed Item_sum::reset to Item_sum::reset_and_add() to and added a comment to avoid misinterpretation of what the function does.
Diffstat (limited to 'mysys/errors.c')
0 files changed, 0 insertions, 0 deletions