1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-25 17:25:02 +03:00
Files
mariadb/mysql-test/r
Michael Widenius b6fe4713fe Fix for LP#612894 Some aggregate functions (such as MIN MAX) work incorrectly in subqueries after getting NULL value
mysql-test/r/group_by.result:
  Added test that showed problems that no_rows_in_results() didn't work for expressions
mysql-test/r/subselect4.result:
  Test case for LP#612894
mysql-test/t/group_by.test:
  Added test that showed problems that no_rows_in_results() didn't work for expressions
mysql-test/t/subselect4.test:
  Test case for LP#612894
sql/item.h:
  Added restore_to_before_no_rows_in_result()
  Added function processor for no_rows_in_results() and restore_to_before_no_rows_in_results() to ensure it works with functions
  Fix that above functions are handled by Item_ref()
sql/item_func.h:
  Ensure that no_rows_in_results() and restore_to_before_no_rows_in_result() are called for all function arguments
sql/item_sum.cc:
  Added restore_to_before_no_rows_in_result() to restore settings after Item_sum_hybrid::no_rows_in_result() was called.
  This is needed to handle the case where we have made 'make_const()' on the item in opt_sum(), but the item will be reused again in a sub query.
  Ignore multiple calls to no_rows_in_result() as Item_ref is calling it twice.
sql/item_sum.h:
  Added restore_to_before_no_rows_in_result();
sql/sql_select.cc:
  Added reset of no_rows_in_result() for JOIN::reinit()
sql/sql_select.h:
  Added marker if no_rows_in_result() is called.
2010-08-23 12:46:25 +03:00
..
2009-08-20 14:30:59 +02:00
2010-02-25 23:13:11 +04:00
2010-01-15 17:27:55 +02:00
2010-03-04 09:03:07 +01:00
2009-08-10 15:46:20 -03:00
2010-05-26 21:55:40 +03:00
2010-01-15 17:27:55 +02:00
2009-06-01 16:00:38 +04:00
2009-12-11 16:02:47 +02:00
2009-05-06 15:00:14 +05:30
2010-01-15 16:58:25 +01:00
2009-09-08 00:50:10 +04:00
2010-06-01 11:54:06 +04:00
2010-04-27 00:46:52 +04:00
2010-06-09 11:29:27 +03:00
2010-04-28 14:52:24 +02:00
2009-10-28 09:52:34 +02:00
2009-12-17 12:06:36 -08:00
2009-10-04 01:20:51 +02:00
2010-08-02 12:01:24 +03:00
2009-11-06 17:54:19 +03:00
2009-12-10 17:38:01 +02:00
2010-03-12 11:52:38 +01:00
2010-03-12 11:52:38 +01:00
2009-09-08 00:50:10 +04:00
2009-06-10 01:11:33 +04:00
2009-10-27 14:09:36 +04:00
2010-04-30 15:27:17 +04:00
2009-06-09 17:08:46 +02:00
2010-08-02 12:01:24 +03:00
2009-11-27 18:10:28 +02:00
2009-06-10 11:58:36 +03:00
2010-08-02 12:01:24 +03:00
2010-05-26 21:55:40 +03:00
2010-04-28 14:52:24 +02:00
2009-12-22 14:38:33 +04:00
2009-10-04 01:20:51 +02:00
2010-08-02 12:01:24 +03:00
2010-05-26 21:55:40 +03:00