summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-05-21 23:35:51 +0300
committerunknown <bell@sanja.is.com.ua>2003-05-21 23:35:51 +0300
commit26aeebfaf7fd0cc08e02724c6c12c849e25ed151 (patch)
tree198e36335229ed9cd4573d38704aac96873c0ab0 /sql/sql_lex.h
parent4637832fa19b2866929c1e5cb7c9dd0a40db15c9 (diff)
downloadmariadb-git-26aeebfaf7fd0cc08e02724c6c12c849e25ed151.tar.gz
fixed subqueries name resolution with INSERT/REPLACE (found during bug 446 investigation)
mysql-test/r/subselect.result: subselect test changed mysql-test/t/subselect.test: INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2)); sql/item.cc: avoid resolving of INSER/REPLACE tables field in subqueries sql/sql_lex.cc: Primary (top) simple INSERT/REPLACE st_select_lex indicator sql/sql_lex.h: Primary (top) simple INSERT/REPLACE st_select_lex indicator sql/sql_yacc.yy: Primary (top) simple INSERT/REPLACE st_select_lex indicator
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index f31b3305e07..5f6ae02cca3 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -352,6 +352,14 @@ public:
bool braces; /* SELECT ... UNION (SELECT ... ) <- this braces */
/* TRUE when having fix field called in processing of this SELECT */
bool having_fix_field;
+ /*
+ TRUE for primary st_select_lex structure of simple INSERT/REPLACE
+ (used for name resolution, see Item_fiels & Item_ref fix_fields,
+ FALSE for INSERT/REPLACE ... SELECT, because it's
+ st_select_lex->table_list will be preprocessed (first table removed)
+ before passing to handle_select)
+ */
+ bool insert_select;
void init_query();
void init_select();