mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
A fix of unions with duplicate rows and returning bug fix for lp:732124 union + limit returns wrong result
This commit is contained in:
@@ -2458,7 +2458,7 @@ void select_send::cleanup()
|
||||
|
||||
/* Send data to client. Returns 0 if ok */
|
||||
|
||||
bool select_send::send_data(List<Item> &items)
|
||||
int select_send::send_data(List<Item> &items)
|
||||
{
|
||||
Protocol *protocol= thd->protocol;
|
||||
DBUG_ENTER("select_send::send_data");
|
||||
@@ -2748,7 +2748,7 @@ select_export::prepare(List<Item> &list, SELECT_LEX_UNIT *u)
|
||||
(int) (uchar) (x) == line_sep_char || \
|
||||
!(x))
|
||||
|
||||
bool select_export::send_data(List<Item> &items)
|
||||
int select_export::send_data(List<Item> &items)
|
||||
{
|
||||
|
||||
DBUG_ENTER("select_export::send_data");
|
||||
@@ -3007,7 +3007,7 @@ select_dump::prepare(List<Item> &list __attribute__((unused)),
|
||||
}
|
||||
|
||||
|
||||
bool select_dump::send_data(List<Item> &items)
|
||||
int select_dump::send_data(List<Item> &items)
|
||||
{
|
||||
List_iterator_fast<Item> li(items);
|
||||
char buff[MAX_FIELD_WIDTH];
|
||||
@@ -3055,7 +3055,7 @@ select_subselect::select_subselect(Item_subselect *item_arg)
|
||||
}
|
||||
|
||||
|
||||
bool select_singlerow_subselect::send_data(List<Item> &items)
|
||||
int select_singlerow_subselect::send_data(List<Item> &items)
|
||||
{
|
||||
DBUG_ENTER("select_singlerow_subselect::send_data");
|
||||
Item_singlerow_subselect *it= (Item_singlerow_subselect *)item;
|
||||
@@ -3089,7 +3089,7 @@ void select_max_min_finder_subselect::cleanup()
|
||||
}
|
||||
|
||||
|
||||
bool select_max_min_finder_subselect::send_data(List<Item> &items)
|
||||
int select_max_min_finder_subselect::send_data(List<Item> &items)
|
||||
{
|
||||
DBUG_ENTER("select_max_min_finder_subselect::send_data");
|
||||
Item_maxmin_subselect *it= (Item_maxmin_subselect *)item;
|
||||
@@ -3206,7 +3206,7 @@ bool select_max_min_finder_subselect::cmp_str()
|
||||
return (sortcmp(val1, val2, cache->collation.collation) < 0);
|
||||
}
|
||||
|
||||
bool select_exists_subselect::send_data(List<Item> &items)
|
||||
int select_exists_subselect::send_data(List<Item> &items)
|
||||
{
|
||||
DBUG_ENTER("select_exists_subselect::send_data");
|
||||
Item_exists_subselect *it= (Item_exists_subselect *)item;
|
||||
@@ -3589,7 +3589,7 @@ Statement_map::~Statement_map()
|
||||
my_hash_free(&st_hash);
|
||||
}
|
||||
|
||||
bool select_dumpvar::send_data(List<Item> &items)
|
||||
int select_dumpvar::send_data(List<Item> &items)
|
||||
{
|
||||
List_iterator_fast<my_var> var_li(var_list);
|
||||
List_iterator<Item> it(items);
|
||||
@@ -3695,7 +3695,7 @@ void select_materialize_with_stats::cleanup()
|
||||
@return FALSE on success
|
||||
*/
|
||||
|
||||
bool select_materialize_with_stats::send_data(List<Item> &items)
|
||||
int select_materialize_with_stats::send_data(List<Item> &items)
|
||||
{
|
||||
List_iterator_fast<Item> item_it(items);
|
||||
Item *cur_item;
|
||||
|
Reference in New Issue
Block a user