~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_func.h

  • Committer: Brian Aker
  • Date: 2008-07-18 19:59:04 UTC
  • mfrom: (177.3.3 drizzle-work)
  • Revision ID: brian@tangent.org-20080718195904-7zxlcav99bdsu1x5
Handling merge from mark.

Show diffs side-by-side

added added

removed removed

Lines of Context:
987
987
};
988
988
 
989
989
 
990
 
#ifdef HAVE_DLOPEN
991
 
 
992
990
class Item_udf_func :public Item_func
993
991
{
994
992
protected:
1164
1162
  void fix_length_and_dec();
1165
1163
};
1166
1164
 
1167
 
#else /* Dummy functions to get sql_yacc.cc compiled */
1168
 
 
1169
 
class Item_func_udf_float :public Item_real_func
1170
 
{
1171
 
 public:
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; }
1177
 
};
1178
 
 
1179
 
 
1180
 
class Item_func_udf_int :public Item_int_func
1181
 
{
1182
 
public:
1183
 
  Item_func_udf_int(udf_func *udf_arg)
1184
 
    :Item_int_func() {}
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; }
1188
 
};
1189
 
 
1190
 
 
1191
 
class Item_func_udf_decimal :public Item_int_func
1192
 
{
1193
 
public:
1194
 
  Item_func_udf_decimal(udf_func *udf_arg)
1195
 
    :Item_int_func() {}
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; }
1199
 
};
1200
 
 
1201
 
 
1202
 
class Item_func_udf_str :public Item_func
1203
 
{
1204
 
public:
1205
 
  Item_func_udf_str(udf_func *udf_arg)
1206
 
    :Item_func() {}
1207
 
  Item_func_udf_str(udf_func *udf_arg, List<Item> &list)
1208
 
    :Item_func(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; }
1215
 
};
1216
 
 
1217
 
#endif /* HAVE_DLOPEN */
1218
1165
 
1219
1166
/* replication functions */
1220
1167