summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-07-29 13:00:32 +0300
committerunknown <bell@sanja.is.com.ua>2003-07-29 13:00:32 +0300
commit0792c1c8243d8b340a343586d0ea6bb8427691f6 (patch)
tree1da6fe8bf71777fc1964c8c397daf062b19f9d0c /sql/sql_select.cc
parent329e063774537c14348a46c162afec79fc94d589 (diff)
downloadmariadb-git-0792c1c8243d8b340a343586d0ea6bb8427691f6.tar.gz
count HAVING clause elements with select list elements, because agregate function can be present in it (BUG#922)
removerd unused loop_id mysql-test/r/subselect.result: test of BUG#922 mysql-test/t/subselect.test: test of BUG#922 sql/item.cc: removerd unused loop_id we need count HAVING clause elements, because agregate function can be present in it sql/item.h: removerd unused loop_id sql/item_subselect.cc: new name of field sql/sql_derived.cc: new name of field sql/sql_lex.cc: new name of field sql/sql_lex.h: new name of field sql/sql_select.cc: new name of field sql/sql_union.cc: new name of field
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 0aa7e67a12b..7803e87572d 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -294,7 +294,8 @@ JOIN::prepare(Item ***rref_pointer_array,
fields_list,
&all_fields, wild_num))) ||
setup_ref_array(thd, rref_pointer_array, (fields_list.elements +
- select_lex->select_items +
+ select_lex->
+ select_n_having_items +
og_num)) ||
setup_fields(thd, (*rref_pointer_array), tables_list, fields_list, 1,
&all_fields, 1) ||