22 #include <drizzled/plugin.h>
23 #include <drizzled/function/math/int.h>
24 #include <drizzled/plugin/function.h>
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->length() != 0 ?
66 (
unsigned char) (*res)[0] :
71 plugin::Create_function<AsciiFunction> *asciiudf= NULL;
75 asciiudf=
new plugin::Create_function<AsciiFunction>(
"ascii");
76 context.add(asciiudf);
80 DRIZZLE_DECLARE_PLUGIN
85 "Devananda van der Veen",
92 DRIZZLE_DECLARE_PLUGIN_END;
TODO: Rename this file - func.h is stupid.
bool check_argument_count(int n)