~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/numhybrid.h

  • Committer: Monty Taylor
  • Date: 2008-10-22 21:31:15 UTC
  • Revision ID: monty@inaugust.com-20081022213115-xuxc80r939tl88p1
Renamed drizzle_common again. Removed sql_common. (empty) 
Now all we need to do is merge/disect base.h, common.h, common_includes.h, server_includes.h and globa.h (good grief)

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_NUMHYBRID_H
21
 
#define DRIZZLED_FUNCTION_NUMHYBRID_H
22
 
 
23
 
#include <drizzled/function/func.h>
24
 
 
25
 
namespace drizzled
26
 
{
 
20
#ifndef DRIZZLED_FUNCTIONS_NUMHYBRID_H
 
21
#define DRIZZLED_FUNCTIONS_NUMHYBRID_H
 
22
 
 
23
#include <drizzled/item.h>
 
24
#include <drizzled/functions/func.h>
27
25
 
28
26
class Item_func_numhybrid: public Item_func
29
27
{
30
28
protected:
31
29
  Item_result hybrid_type;
32
30
public:
33
 
  Item_func_numhybrid(): Item_func(), hybrid_type(REAL_RESULT)
34
 
  {}
35
31
  Item_func_numhybrid(Item *a) :Item_func(a), hybrid_type(REAL_RESULT)
36
32
  {}
37
33
  Item_func_numhybrid(Item *a,Item *b)
72
68
     result type is DECIMAL.
73
69
 
74
70
     @param A pointer where the DECIMAL value will be allocated.
75
 
     @return
 
71
     @return 
76
72
       - 0 If the result is NULL
77
73
       - The same pointer it was given, with the area initialized to the
78
74
         result of the operation.
89
85
  bool is_null() { update_null_value(); return null_value; }
90
86
};
91
87
 
92
 
} /* namespace drizzled */
93
 
 
94
 
#endif /* DRIZZLED_FUNCTION_NUMHYBRID_H */
 
88
#endif /* DRIZZLED_FUNCTIONS_NUMHYBRID_H */