~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/numhybrid.h

Merge Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
30
30
protected:
31
31
  Item_result hybrid_type;
32
32
public:
33
 
  Item_func_numhybrid(): Item_func(), hybrid_type(REAL_RESULT)
34
 
  {}
35
33
  Item_func_numhybrid(Item *a) :Item_func(a), hybrid_type(REAL_RESULT)
36
34
  {}
37
35
  Item_func_numhybrid(Item *a,Item *b)
48
46
 
49
47
  double val_real();
50
48
  int64_t val_int();
51
 
  type::Decimal *val_decimal(type::Decimal *);
 
49
  my_decimal *val_decimal(my_decimal *);
52
50
  String *val_str(String*str);
53
51
 
54
52
  /**
77
75
       - The same pointer it was given, with the area initialized to the
78
76
         result of the operation.
79
77
  */
80
 
  virtual type::Decimal *decimal_op(type::Decimal *)= 0;
 
78
  virtual my_decimal *decimal_op(my_decimal *)= 0;
81
79
 
82
80
  /**
83
81
     @brief Performs the operation that this functions implements when the