summaryrefslogtreecommitdiff
path: root/sql/item_uniq.h
diff options
context:
space:
mode:
authorbell@laptop.sanja.is.com.ua <>2003-08-28 03:10:14 +0300
committerbell@laptop.sanja.is.com.ua <>2003-08-28 03:10:14 +0300
commit3d2a3804a1e26906c3d0b1d969452465e97fa572 (patch)
treeed1b5477d82793fa5e64d377ef4d4c7a1e83bc07 /sql/item_uniq.h
parent42171225eb8b94bcb35c47512da735dc8a4803fc (diff)
downloadmariadb-git-3d2a3804a1e26906c3d0b1d969452465e97fa572.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)
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) {}