summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-12-10 23:31:03 -0800
committerunknown <igor@rurik.mysql.com>2005-12-10 23:31:03 -0800
commit53f8fed437919b82857d4518c43e6e17065786b5 (patch)
tree6b4057c32ab656cc8492feed92caa812a84d4f76 /sql/sql_lex.cc
parente324da302f39998d654b5b112a0342cad0427e35 (diff)
parentf81ed05cdcad5723c986c580cfcf3ee5e22a385c (diff)
downloadmariadb-git-53f8fed437919b82857d4518c43e6e17065786b5.tar.gz
Merge rurik.mysql.com:/home/igor/mysql-5.0
into rurik.mysql.com:/home/igor/dev/mysql-5.0-2 sql/item.cc: Auto merged sql/item.h: Auto merged sql/item_func.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sql_base.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_yacc.yy: Auto 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 e40c5dc783d..946b6a28430 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;