~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.cc

Merged from fix-headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/server_includes.h>
25
25
#include <drizzled/sql_select.h>
26
26
#include <drizzled/error.h>
 
27
#include <drizzled/item/cmpfunc.h>
27
28
#include CMATH_H
28
29
 
29
30
#if defined(CMATH_NAMESPACE)
30
31
using namespace CMATH_NAMESPACE;
31
32
#endif
32
33
 
 
34
static Eq_creator eq_creator;
 
35
static Ne_creator ne_creator;
 
36
static Gt_creator gt_creator;
 
37
static Lt_creator lt_creator;
 
38
static Ge_creator ge_creator;
 
39
static Le_creator le_creator;
 
40
 
33
41
static bool convert_constant_item(Session *, Item_field *, Item **);
34
42
 
35
43
static Item_result item_store_type(Item_result a, Item *item,
226
234
}
227
235
 
228
236
 
 
237
const Eq_creator* Eq_creator::instance()
 
238
{
 
239
  return &eq_creator;
 
240
}
 
241
 
 
242
 
229
243
Item_bool_func2* Ne_creator::create(Item *a, Item *b) const
230
244
{
231
245
  return new Item_func_ne(a, b);
232
246
}
233
247
 
234
248
 
 
249
const Ne_creator* Ne_creator::instance()
 
250
{
 
251
  return &ne_creator;
 
252
}
 
253
 
 
254
 
235
255
Item_bool_func2* Gt_creator::create(Item *a, Item *b) const
236
256
{
237
257
  return new Item_func_gt(a, b);
238
258
}
239
259
 
240
260
 
 
261
const Gt_creator* Gt_creator::instance()
 
262
{
 
263
  return &gt_creator;
 
264
}
 
265
 
 
266
 
241
267
Item_bool_func2* Lt_creator::create(Item *a, Item *b) const
242
268
{
243
269
  return new Item_func_lt(a, b);
244
270
}
245
271
 
246
272
 
 
273
const Lt_creator* Lt_creator::instance()
 
274
{
 
275
  return &lt_creator;
 
276
}
 
277
 
 
278
 
247
279
Item_bool_func2* Ge_creator::create(Item *a, Item *b) const
248
280
{
249
281
  return new Item_func_ge(a, b);
250
282
}
251
283
 
252
284
 
 
285
const Ge_creator* Ge_creator::instance()
 
286
{
 
287
  return &ge_creator;
 
288
}
 
289
 
 
290
 
253
291
Item_bool_func2* Le_creator::create(Item *a, Item *b) const
254
292
{
255
293
  return new Item_func_le(a, b);
256
294
}
257
295
 
 
296
const Le_creator* Le_creator::instance()
 
297
{
 
298
  return &le_creator;
 
299
}
 
300
 
 
301
 
258
302
/*
259
303
  Test functions
260
304
  Most of these  returns 0LL if false and 1LL if true and