mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
This commit is contained in:
commit
fd7bc72676
1 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ int st_select_lex_unit::prepare(THD *thd, select_result *sel_result,
|
||||||
bool tables_and_fields_initied)
|
bool tables_and_fields_initied)
|
||||||
{
|
{
|
||||||
SELECT_LEX *lex_select_save= thd->lex.current_select;
|
SELECT_LEX *lex_select_save= thd->lex.current_select;
|
||||||
SELECT_LEX *select_cursor;
|
SELECT_LEX *select_cursor,*sl;
|
||||||
DBUG_ENTER("st_select_lex_unit::prepare");
|
DBUG_ENTER("st_select_lex_unit::prepare");
|
||||||
|
|
||||||
if (prepared)
|
if (prepared)
|
||||||
|
@ -130,7 +130,7 @@ int st_select_lex_unit::prepare(THD *thd, select_result *sel_result,
|
||||||
t_and_f= tables_and_fields_initied;
|
t_and_f= tables_and_fields_initied;
|
||||||
|
|
||||||
bzero((char *)&tmp_table_param,sizeof(TMP_TABLE_PARAM));
|
bzero((char *)&tmp_table_param,sizeof(TMP_TABLE_PARAM));
|
||||||
thd->lex.current_select= select_cursor= first_select_in_union();
|
thd->lex.current_select= sl= select_cursor= first_select_in_union();
|
||||||
/* Global option */
|
/* Global option */
|
||||||
if (t_and_f)
|
if (t_and_f)
|
||||||
{
|
{
|
||||||
|
@ -185,7 +185,7 @@ int st_select_lex_unit::prepare(THD *thd, select_result *sel_result,
|
||||||
union_result->not_describe=1;
|
union_result->not_describe=1;
|
||||||
union_result->tmp_table_param=tmp_table_param;
|
union_result->tmp_table_param=tmp_table_param;
|
||||||
|
|
||||||
for (SELECT_LEX *sl= select_cursor; sl; sl= sl->next_select())
|
for (;sl; sl= sl->next_select())
|
||||||
{
|
{
|
||||||
JOIN *join= new JOIN(thd, sl->item_list,
|
JOIN *join= new JOIN(thd, sl->item_list,
|
||||||
sl->options | thd->options | SELECT_NO_UNLOCK,
|
sl->options | thd->options | SELECT_NO_UNLOCK,
|
||||||
|
|
Loading…
Add table
Reference in a new issue