22#include <drizzled/function/math/int.h>
23#include <drizzled/plugin.h>
24#include <drizzled/plugin/function.h>
29class CharLengthFunction :
public Item_int_func
34 CharLengthFunction() :Item_int_func() {}
36 const char *func_name()
const
41 void fix_length_and_dec()
55 assert(
fixed ==
true);
56 String *res=args[0]->val_str(&value);
65 return (int64_t) res->numchars();
75 context.add(charlengthudf);
76 context.add(characterlengthudf);
85 "Devananda van der Veen",
86 N_(
"CHAR_LENGTH and CHARACTER_LENGTH functions"),
92DRIZZLE_DECLARE_PLUGIN_END;
bool check_argument_count(int n)
TODO: Rename this file - func.h is stupid.