1164
1162
void fix_length_and_dec();
1167
#else /* Dummy functions to get sql_yacc.cc compiled */
1169
class Item_func_udf_float :public Item_real_func
1172
Item_func_udf_float(udf_func *udf_arg)
1173
:Item_real_func() {}
1174
Item_func_udf_float(udf_func *udf_arg, List<Item> &list)
1175
:Item_real_func(list) {}
1176
double val_real() { assert(fixed == 1); return 0.0; }
1180
class Item_func_udf_int :public Item_int_func
1183
Item_func_udf_int(udf_func *udf_arg)
1185
Item_func_udf_int(udf_func *udf_arg, List<Item> &list)
1186
:Item_int_func(list) {}
1187
int64_t val_int() { assert(fixed == 1); return 0; }
1191
class Item_func_udf_decimal :public Item_int_func
1194
Item_func_udf_decimal(udf_func *udf_arg)
1196
Item_func_udf_decimal(udf_func *udf_arg, List<Item> &list)
1197
:Item_int_func(list) {}
1198
my_decimal *val_decimal(my_decimal *) { assert(fixed == 1); return 0; }
1202
class Item_func_udf_str :public Item_func
1205
Item_func_udf_str(udf_func *udf_arg)
1207
Item_func_udf_str(udf_func *udf_arg, List<Item> &list)
1209
String *val_str(String *)
1210
{ assert(fixed == 1); null_value=1; return 0; }
1211
double val_real() { assert(fixed == 1); null_value= 1; return 0.0; }
1212
int64_t val_int() { assert(fixed == 1); null_value=1; return 0; }
1213
enum Item_result result_type () const { return STRING_RESULT; }
1214
void fix_length_and_dec() { maybe_null=1; max_length=0; }
1217
#endif /* HAVE_DLOPEN */
1219
1166
/* replication functions */