1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-29 00:08:14 +03:00

fixed bug of PROCEDURE in same query with subselects

prohibited using procedure inside subquery
fixed error handling of procedure analize


mysql-test/r/subselect.result:
  test of PROCEDURE in subselect
  test of PROCEDURE of subselect
mysql-test/t/subselect.test:
  test of PROCEDURE in subselect
  test of PROCEDURE of subselect
sql/sql_analyse.cc:
  fixed error handling in procedure analize
sql/sql_parse.cc:
  fixed bug of PROCEDURE in same query with subselects
sql/sql_yacc.yy:
  prohibited using procedure inside subquery
This commit is contained in:
unknown
2002-12-06 00:40:28 +02:00
parent ef4f5b2148
commit f67abe26fb
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;
}
}