1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/mysql-test/r
evgen@moonbone.local 8ffda481c9 Fixed bug#18503: Queries with a quantified subquery returning empty set
may return a wrong result.

An Item_sum_hybrid object has the was_values flag which indicates whether any
values were added to the sum function. By default it is set to true and reset
to false on any no_rows_in_result() call. This method is called only in
return_zero_rows() function. An ALL/ANY subquery can be optimized by MIN/MAX
optimization. The was_values flag is used to indicate whether the subquery
has returned at least one row. This bug occurs because return_zero_rows() is
called only when we know that the select will return zero rows before
starting any scans but often such information is not known.
In the reported case the return_zero_rows() function is not called and
the was_values flag is not reset to false and yet the subquery return no rows
Item_func_not_all and Item_func_nop_all functions return a wrong
comparison result.

The end_send_group() function now calls no_rows_in_result() for each item
in the fields_list if there is no rows were found for the (sub)query.
2006-07-12 01:52:18 +04:00
..
2006-05-01 21:30:09 +03:00
2005-06-16 10:09:05 +02:00
2006-06-15 16:39:18 +04:00
2004-08-26 18:26:38 +03:00
2005-11-06 02:11:12 +03:00
2006-06-22 00:29:04 +04:00
2006-05-04 20:19:37 +03:00
2005-02-15 21:03:17 -08:00
2004-10-07 10:50:13 +03:00
2005-08-29 22:35:48 -05:00
2005-06-27 20:31:00 +03:00
2006-06-02 14:14:57 -07:00
2005-06-13 11:38:16 -07:00
2005-11-01 13:00:02 +02:00
2005-05-05 10:36:17 -07:00
2005-07-22 21:06:02 +05:00
2006-05-06 23:48:13 -07:00
2006-01-30 15:17:33 +03:00
2005-08-07 03:16:15 +01:00
2005-09-06 18:03:08 +04:00
2004-09-02 22:06:30 -07:00
2006-03-06 18:34:38 +01:00
2005-02-02 08:38:24 +02:00
2004-09-09 11:22:23 -05:00
2006-05-04 09:58:03 +05:00
2005-11-25 10:41:22 +01:00
2004-11-08 11:06:36 +01:00
2005-09-12 12:45:03 -07:00
2005-09-30 11:39:49 +02:00
2004-09-30 21:36:25 +00:00
2006-06-12 15:35:47 +02:00
2005-05-04 10:16:03 +02:00
2004-10-07 08:42:11 +00:00
2004-08-31 21:10:57 +03:00
2006-04-20 22:15:38 -07:00
2005-06-23 10:56:44 +03:00
2004-10-07 10:50:13 +03:00
2005-08-24 19:37:27 +03:00
2005-07-28 21:25:05 +03:00
2005-02-24 17:25:06 +01:00
2005-04-06 12:20:55 +02:00
2004-09-07 21:30:28 +02:00
2005-02-28 19:59:38 +04:00
2006-06-20 23:05:55 +04:00
2004-11-12 17:44:17 +02:00
2004-08-24 17:24:23 +02:00
2005-08-09 00:13:49 +03:00
2005-03-23 20:38:42 +01:00
2004-08-19 03:02:09 +02:00
2006-01-26 00:06:20 +03:00