summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-07-23 09:20:58 +0300
committerunknown <bell@sanja.is.com.ua>2004-07-23 09:20:58 +0300
commit1b98202be7544b34f79b99cbf22e4b29090e4f9f (patch)
tree468a63f90437f6089d0851ca6f6d1961008de608 /sql/sql_lex.cc
parentdc4de8d562bf781bc6640a00e2720548f20a53e0 (diff)
downloadmariadb-git-1b98202be7544b34f79b99cbf22e4b29090e4f9f.tar.gz
fixed using VIEW fields (BUG#4617)
mysql-test/r/view.result: using VIEW fields several times in query resolved via temporary tables mysql-test/t/view.test: using VIEW fields several times in query resolved via temporary tables sql/item.h: fixed using of result_field by Item_ref sql/sql_base.cc: Create Item_ref as reference on VIEW fields expression reference sql/sql_insert.cc: privent creating Item_ref in insert list (where Item_fields should be) sql/sql_lex.cc: Item_ref creation control sql/sql_lex.h: Item_ref creation control sql/sql_update.cc: privent creating Item_ref in insert list (where Item_fields should be) and creation Item_fields for UPDATE list sql/table.cc: Do not create Item_ref for internal view of view processing
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index aa1c44b8e73..c4390ce0f9a 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1005,6 +1005,7 @@ void st_select_lex::init_query()
first_execution= 1;
first_cond_optimization= 1;
parsing_place= SELECT_LEX_NODE::NO_MATTER;
+ no_wrap_view_item= 0;
}
void st_select_lex::init_select()