~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/int.h

  • Committer: Monty Taylor
  • Date: 2008-10-10 23:04:21 UTC
  • mto: (509.1.1 codestyle)
  • mto: This revision was merged to the branch mainline in revision 511.
  • Revision ID: monty@inaugust.com-20081010230421-zohe1eppxievpw8d
Removed O_NOFOLLOW

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_FUNCTION_MATH_INT_H
21
 
#define DRIZZLED_FUNCTION_MATH_INT_H
 
20
#ifndef DRIZZLED_FUNCTIONS_INT_H
 
21
#define DRIZZLED_FUNCTIONS_INT_H
22
22
 
23
 
#include <drizzled/function/func.h>
 
23
#include <drizzled/item.h>
 
24
#include <drizzled/functions/func.h>
24
25
#include <drizzled/sql_list.h>
25
26
 
26
 
namespace drizzled
27
 
{
28
 
 
29
27
class Item_int_func :public Item_func
30
28
{
31
29
public:
35
33
  Item_int_func(Item *a,Item *b,Item *c) :Item_func(a,b,c)
36
34
  { max_length= 21; }
37
35
  Item_int_func(List<Item> &list) :Item_func(list) { max_length= 21; }
38
 
  Item_int_func(Session *session, Item_int_func *item) :Item_func(session, item) {}
39
 
  virtual ~Item_int_func();
 
36
  Item_int_func(THD *thd, Item_int_func *item) :Item_func(thd, item) {}
40
37
  double val_real();
41
38
  String *val_str(String*str);
42
39
  enum Item_result result_type () const { return INT_RESULT; }
43
40
  void fix_length_and_dec() {}
44
41
};
45
42
 
46
 
} /* namespace drizzled */
47
 
 
48
 
#endif /* DRIZZLED_FUNCTION_MATH_INT_H */
 
43
#endif /* DRIZZLED_FUNCTIONS_INT_H */