summaryrefslogtreecommitdiff
path: root/.cvsignore
diff options
context:
space:
mode:
authorunknown <kaa@kaamos.(none)>2008-02-22 11:34:18 +0300
committerunknown <kaa@kaamos.(none)>2008-02-22 11:34:18 +0300
commit012aab7d8bf7ae9c30751a6d5f666c7731ecfdf3 (patch)
tree083d0b2d329bd84d153bfe6bc799c20d2251015f /.cvsignore
parentc4fc5b096e582f23bac8bc14cb93f6ade63f476f (diff)
downloadmariadb-git-012aab7d8bf7ae9c30751a6d5f666c7731ecfdf3.tar.gz
Fix for bug #33049: Assert while running test-as3ap test(mysql-bench
suite) Under some circumstances a combination of aggregate functions and GROUP BY in a SELECT query over a VIEW could lead to incorrect calculation of the result type of the aggregate function. This in turn could result in incorrect results, or assertion failures on debug builds. Fixed by changing the logic in Item_sum_hybrid::fix_fields() so that the argument's item is dereferenced before calling its type() method. mysql-test/r/view.result: Added a test case for bug #33049. mysql-test/t/view.test: Added a test case for bug #33049. sql/item_sum.cc: When calculating the result type of an aggregate function, dereference the argument's item before calling its type() method.
Diffstat (limited to '.cvsignore')
0 files changed, 0 insertions, 0 deletions