1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
timour/timka@lamia.home 86ae2f3b06 Fix for BUG#20954: avg(keyval) retuns 0.38 but max(keyval) returns an empty set
The problem was in that opt_sum_query() replaced MIN/MAX functions
with the corresponding constant found in a key, but due to imprecise
representation of float numbers, when evaluating the where clause,
this comparison failed.

When MIN/MAX optimization detects that all tables can be removed,
also remove all conjuncts in a where clause that refer to these
tables. As a result of this fix, these conditions are not evaluated
twice, and in the case of float number comparisons we do not discard
result rows due to imprecise float representation.

As a side-effect this fix also corrects an unnoticed problem in
bug 12882.
2006-07-26 01:11:19 +03:00
..
2005-09-30 14:03:55 +02:00
2006-06-22 00:29:04 +04:00
2005-09-12 18:48:17 +03:00
2004-09-01 04:12:09 +03:00
2005-08-30 02:46:03 +02:00
2006-05-15 17:25:37 +04:00
2005-06-21 04:24:21 -07:00
2006-06-22 15:50:15 -07:00
2006-07-04 17:40:40 +05:00
2006-06-17 02:11:12 +04:00
2005-03-17 10:59:25 +04:00
2006-07-04 17:40:40 +05:00
2004-10-06 19:14:33 +03:00
2006-07-04 17:40:40 +05:00
2006-07-04 17:40:40 +05:00
2005-11-01 13:00:02 +02:00
2006-07-04 17:40:40 +05:00
2004-12-14 03:36:19 +03:00
2006-05-06 23:48:13 -07:00
2005-05-18 22:14:08 +02:00
2006-07-04 17:40:40 +05:00
2006-05-06 23:48:13 -07:00
2006-05-04 00:03:58 +05:00
2006-04-20 22:15:38 -07:00
2006-04-20 22:15:38 -07:00
2006-06-30 18:29:27 +03:00
2004-11-08 01:13:54 +02:00
2005-12-13 18:30:10 +02:00
2005-07-27 13:05:30 +03:00