54 if (args->arg_count != 0) {
55 strcpy(message,
"rownumber() requires no argument");
61 strcpy(message,
"Couldn't allocate memory");
66 initid->maybe_null = 0;
68 initid->max_length = 13 + initid->decimals;
69 initid->ptr = (
char *) data;
70 initid->const_item = 0;
84 long long rownumber(UDF_INIT *initid, UDF_ARGS *args,
char *is_null,
char *error) {
Definition of functions for UDFs and plugins.
my_bool rownumber_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
Called before first usage of function.
#define NOT_FIXED_DEC
Maximum number of digits in double As defined in mysql/sql_string.h.
long long rownumber(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
Retrieve row number.
Storage for rownumber function.
void rownumber_deinit(UDF_INIT *initid)
Called after last access to function.