mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
Merge branch '10.0' into 10.1
This commit is contained in:
commit
8e15768731
180 changed files with 10539 additions and 2460 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/* Copyright (c) 2002, 2015, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2015, MariaDB
|
||||
/* Copyright (c) 2002, 2016, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2016, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -3511,9 +3511,14 @@ bool subselect_union_engine::is_executed() const
|
|||
bool subselect_union_engine::no_rows()
|
||||
{
|
||||
/* Check if we got any rows when reading UNION result from temp. table: */
|
||||
return MY_TEST(!(unit->fake_select_lex ?
|
||||
unit->fake_select_lex->join->send_records :
|
||||
((select_union_direct *)(unit->get_union_result()))
|
||||
if (unit->fake_select_lex)
|
||||
{
|
||||
JOIN *join= unit->fake_select_lex->join;
|
||||
if (join)
|
||||
return MY_TEST(!join->send_records);
|
||||
return false;
|
||||
}
|
||||
return MY_TEST(!(((select_union_direct *)(unit->get_union_result()))
|
||||
->send_records));
|
||||
}
|
||||
|
||||
|
|
@ -4897,9 +4902,9 @@ bool subselect_hash_sj_engine::init(List<Item> *tmp_columns, uint subquery_id)
|
|||
result= result_sink;
|
||||
|
||||
/*
|
||||
If the subquery has blobs, or the total key lenght is bigger than
|
||||
If the subquery has blobs, or the total key length is bigger than
|
||||
some length, or the total number of key parts is more than the
|
||||
allowed maximum (currently MAX_REF_PARTS == 16), then the created
|
||||
allowed maximum (currently MAX_REF_PARTS == 32), then the created
|
||||
index cannot be used for lookups and we can't use hash semi
|
||||
join. If this is the case, delete the temporary table since it
|
||||
will not be used, and tell the caller we failed to initialize the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue