1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

fixed bug of PROCEDURE in same query with subselects

prohibited using procedure inside subquery
fixed error handling of procedure analize
This commit is contained in:
bell@sanja.is.com.ua
2002-12-06 00:40:28 +02:00
parent 9e4dc3fba5
commit f1858ec331
5 changed files with 26 additions and 7 deletions

View File

@@ -3054,9 +3054,12 @@ mysql_init_select(LEX *lex)
select_lex->init_select();
select_lex->master_unit()->select_limit= select_lex->select_limit=
lex->thd->variables.select_limit;
lex->exchange= 0;
lex->result= 0;
lex->proc_list.first= 0;
if (select_lex == &lex->select_lex)
{
lex->exchange= 0;
lex->result= 0;
lex->proc_list.first= 0;
}
}