~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/numhybrid.h

  • Committer: Monty Taylor
  • Date: 2010-12-24 02:13:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101224021305-e3slv1cyjczqorij
Changed the bzrignore file.

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