~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/int_val.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-21 01:02:23 UTC
  • mto: (960.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: osullivan.padraig@gmail.com-20090321010223-j8cph7eeyt1u3xol
Fixed function object to ensure it correctly returns a boolean type since
memcmp returns an integer. Added some more comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <drizzled/function/func.h>
24
24
#include <drizzled/function/num1.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
class Item_func_int_val :public Item_func_num1
30
27
{
31
28
public:
32
29
  Item_func_int_val(Item *a) :Item_func_num1(a) {}
33
 
  Item_func_int_val() :Item_func_num1() {}
34
30
  void fix_num_length_and_dec();
35
31
  void find_num_type();
36
32
};
37
33
 
38
 
} /* namespace drizzled */
39
 
 
40
34
#endif /* DRIZZLED_FUNCTION_MATH_INT_VAL_H */