summaryrefslogtreecommitdiff
path: root/sql/item_uniq.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
commit0eeb472c304dd5dd596d507b5a14773d80564440 (patch)
treeed1b5477d82793fa5e64d377ef4d4c7a1e83bc07 /sql/item_uniq.h
parent0acca0aba1cc7b8aaa709c7c393fb6333da6bd0a (diff)
downloadmariadb-git-0eeb472c304dd5dd596d507b5a14773d80564440.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/item_uniq.h')
-rw-r--r--sql/item_uniq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_uniq.h b/sql/item_uniq.h
index f2c64c4bde9..e41397dac44 100644
--- a/sql/item_uniq.h
+++ b/sql/item_uniq.h
@@ -41,7 +41,7 @@ public:
:Item_sum_num(thd, item) {}
double val() { return 0.0; }
enum Sumfunctype sum_func () const {return UNIQUE_USERS_FUNC;}
- bool reset() { return 0;}
+ void clear() {}
bool add() { return 0; }
void reset_field() {}
void update_field(int offset) {}