mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/*
|
||||
Copyright (c) 2002, 2011, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2015, MariaDB
|
||||
Copyright (c) 2010, 2020, 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
|
||||
@ -1197,7 +1197,6 @@ bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived)
|
||||
DBUG_ASSERT(derived->table && derived->table->is_created());
|
||||
select_unit *derived_result= derived->derived_result;
|
||||
SELECT_LEX *save_current_select= lex->current_select;
|
||||
bool derived_recursive_is_filled= false;
|
||||
|
||||
if (derived->pushdown_derived)
|
||||
{
|
||||
@ -1238,7 +1237,6 @@ bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived)
|
||||
{
|
||||
/* In this case all iteration are performed */
|
||||
res= derived->fill_recursive(thd);
|
||||
derived_recursive_is_filled= true;
|
||||
}
|
||||
}
|
||||
else if (unit->is_unit_op())
|
||||
@ -1293,8 +1291,7 @@ bool mysql_derived_fill(THD *thd, LEX *lex, TABLE_LIST *derived)
|
||||
}
|
||||
}
|
||||
err:
|
||||
if (res || (!lex->describe && !unit->uncacheable &&
|
||||
(!derived_is_recursive || derived_recursive_is_filled)))
|
||||
if (res || (!derived_is_recursive && !lex->describe && !unit->uncacheable))
|
||||
unit->cleanup();
|
||||
lex->current_select= save_current_select;
|
||||
|
||||
|
Reference in New Issue
Block a user