mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fixed uncachable union (bug #150)
mysql-test/r/union.result: sect of uncachable union mysql-test/t/union.test: sect of uncachable union sql/sql_lex.h: fixed uncachable union
This commit is contained in:
@@ -501,11 +501,13 @@ typedef struct st_lex
|
||||
but we should merk all subselects as uncacheable from current till
|
||||
most upper
|
||||
*/
|
||||
for (SELECT_LEX_NODE *sl= current_select;
|
||||
sl != &select_lex;
|
||||
sl= sl->outer_select())
|
||||
SELECT_LEX_NODE *sl;
|
||||
SELECT_LEX_UNIT *un;
|
||||
for (sl= current_select, un= sl->master_unit();
|
||||
un != &unit;
|
||||
sl= sl->outer_select(), un= sl->master_unit())
|
||||
{
|
||||
sl->uncacheable = sl->master_unit()->uncacheable= 1;
|
||||
sl->uncacheable = un->uncacheable= 1;
|
||||
}
|
||||
}
|
||||
} LEX;
|
||||
|
Reference in New Issue
Block a user