summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <timour@mysql.com>2005-12-07 10:47:43 +0200
committerunknown <timour@mysql.com>2005-12-07 10:47:43 +0200
commitf1ac6bb9758369653c37099d7f36fe0a47ad2d35 (patch)
tree5c45e53e7f09589e61835d39a983102878f0071e /sql/sql_lex.cc
parentfd2beeda33771172dbb95518df3233cb7e005187 (diff)
parentf095abaa4748c5ad2c302b8697c819d3fbd5de2a (diff)
downloadmariadb-git-f1ac6bb9758369653c37099d7f36fe0a47ad2d35.tar.gz
Merge mysql.com:/home/timka/mysql/src/5.0-2486
into mysql.com:/home/timka/mysql/src/5.1-dbg sql/item.cc: Auto merged sql/item.h: Auto merged sql/mysql_priv.h: Auto merged sql/sql_acl.cc: Auto merged sql/sql_acl.h: Auto merged sql/sql_insert.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/table.h: Auto merged sql/sql_base.cc: SCCS merged sql/table.cc: SCCS merged
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 4d32e26f1b7..0a73bc2f174 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1130,6 +1130,11 @@ void st_select_lex::init_query()
/*
Add the name resolution context of the current (sub)query to the
stack of contexts for the whole query.
+ TODO:
+ push_context may return an error if there is no memory for a new
+ element in the stack, however this method has no return value,
+ thus push_context should be moved to a place where query
+ initialization is checked for failure.
*/
parent_lex->push_context(&context);
cond_count= with_wild= 0;