summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorunknown <bell@laptop.sanja.is.com.ua>2003-08-28 03:10:14 +0300
committerunknown <bell@laptop.sanja.is.com.ua>2003-08-28 03:10:14 +0300
commit85f7a6978bced6b17940363b792e7bc80dcce3aa (patch)
treeed1b5477d82793fa5e64d377ef4d4c7a1e83bc07 /sql/sql_select.h
parentc2d54add7ede5e2e4610c43eeff6aa6f055cf197 (diff)
downloadmariadb-git-85f7a6978bced6b17940363b792e7bc80dcce3aa.tar.gz
reset() split in 2 function clear() & add()
aggregate function reinitialization (if no rows was found) made with help of clear() (fixed BUG#860) mysql-test/r/subselect.result: test for BUG#860 mysql-test/t/subselect.test: test for BUG#860 sql/item_sum.cc: reset() replaced with clear() sql/item_sum.h: reset() replaced with clear() (reset now is just composition of clear() and add()) sql/item_uniq.h: reset() replaced with clear() sql/sql_select.cc: removed NULL value assigment, now it will be done by clear() call function for clearing if there was not found any row in group sql/sql_select.h: function for clearing if there was not found any row in group
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 208eaaea7bd..9ca46a505aa 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -279,6 +279,7 @@ class JOIN :public Sql_alloc
Item_sum ***func);
int rollup_send_data(uint idx);
bool test_in_subselect(Item **where);
+ void clear();
};