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

Merge olga.mysql.com:/home/igor/mysql-5.0

into  olga.mysql.com:/home/igor/dev-opt/mysql-5.0-opt-merge
This commit is contained in:
igor@olga.mysql.com
2007-08-04 20:53:26 -07:00
8 changed files with 75 additions and 3 deletions

View File

@@ -5892,6 +5892,11 @@ mysql_new_select(LEX *lex, bool move_down)
select_lex->init_query();
select_lex->init_select();
lex->nest_level++;
if (lex->nest_level > (int) MAX_SELECT_NESTING)
{
my_error(ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,MYF(0),MAX_SELECT_NESTING);
DBUG_RETURN(1);
}
select_lex->nest_level= lex->nest_level;
/*
Don't evaluate this subquery during statement prepare even if