item_uniq.h
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:2k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
  2.    
  3.    This program is free software; you can redistribute it and/or modify
  4.    it under the terms of the GNU General Public License as published by
  5.    the Free Software Foundation; either version 2 of the License, or
  6.    (at your option) any later version.
  7.    
  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.
  12.    
  13.    You should have received a copy of the GNU General Public License
  14.    along with this program; if not, write to the Free Software
  15.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  16. /* Compability file ; This file only contains dummy functions */
  17. #ifdef __GNUC__
  18. #pragma interface
  19. #endif
  20. #include <queues.h>
  21. class Item_func_unique_users :public Item_real_func
  22. {
  23. public:
  24.   Item_func_unique_users(Item *name_arg,int start,int end,List<Item> &list)
  25.     :Item_real_func(list) {}
  26.   double val() { return 0.0; }
  27.   void fix_length_and_dec() { decimals=0; max_length=6; }
  28. };
  29. class Item_sum_unique_users :public Item_sum_num
  30. {
  31. public:
  32.   Item_sum_unique_users(Item *name_arg,int start,int end,Item *item_arg)
  33.     :Item_sum_num(item_arg) {}
  34.   double val() { return 0.0; }  
  35.   enum Sumfunctype sum_func () const {return UNIQUE_USERS_FUNC;}
  36.   void reset() {}
  37.   bool add() { return 0; }
  38.   void reset_field() {}
  39.   void update_field(int offset) {}
  40.   bool fix_fields(THD *thd,struct st_table_list *tlist) { return 0;}
  41. };