~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

  • Committer: Mark Atwood
  • Date: 2011-06-24 11:45:17 UTC
  • mfrom: (2318.6.64 rf)
  • Revision ID: me@mark.atwood.name-20110624114517-1mq8no6jlp2nrg7m
mergeĀ lp:~olafvdspek/drizzle/refactor15

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
class Eq_creator :public Comp_creator
255
255
{
256
256
public:
257
 
  Eq_creator() {}                             /* Remove gcc warning */
258
 
  virtual ~Eq_creator() {}                    /* Remove gcc warning */
259
257
  virtual Item_bool_func2* create(Item *a, Item *b) const;
260
258
  virtual const char* symbol(bool invert) const { return invert? "<>" : "="; }
261
259
  virtual bool eqne_op() const { return 1; }
266
264
class Ne_creator :public Comp_creator
267
265
{
268
266
public:
269
 
  Ne_creator() {}                             /* Remove gcc warning */
270
 
  virtual ~Ne_creator() {}                    /* Remove gcc warning */
271
267
  virtual Item_bool_func2* create(Item *a, Item *b) const;
272
268
  virtual const char* symbol(bool invert) const { return invert? "=" : "<>"; }
273
269
  virtual bool eqne_op() const { return 1; }
278
274
class Gt_creator :public Comp_creator
279
275
{
280
276
public:
281
 
  Gt_creator() {}                             /* Remove gcc warning */
282
 
  virtual ~Gt_creator() {}                    /* Remove gcc warning */
283
277
  virtual Item_bool_func2* create(Item *a, Item *b) const;
284
278
  virtual const char* symbol(bool invert) const { return invert? "<=" : ">"; }
285
279
  virtual bool eqne_op() const { return 0; }
290
284
class Lt_creator :public Comp_creator
291
285
{
292
286
public:
293
 
  Lt_creator() {}                             /* Remove gcc warning */
294
 
  virtual ~Lt_creator() {}                    /* Remove gcc warning */
295
287
  virtual Item_bool_func2* create(Item *a, Item *b) const;
296
288
  virtual const char* symbol(bool invert) const { return invert? ">=" : "<"; }
297
289
  virtual bool eqne_op() const { return 0; }
302
294
class Ge_creator :public Comp_creator
303
295
{
304
296
public:
305
 
  Ge_creator() {}                             /* Remove gcc warning */
306
 
  virtual ~Ge_creator() {}                    /* Remove gcc warning */
307
297
  virtual Item_bool_func2* create(Item *a, Item *b) const;
308
298
  virtual const char* symbol(bool invert) const { return invert? "<" : ">="; }
309
299
  virtual bool eqne_op() const { return 0; }
314
304
class Le_creator :public Comp_creator
315
305
{
316
306
public:
317
 
  Le_creator() {}                             /* Remove gcc warning */
318
 
  virtual ~Le_creator() {}                    /* Remove gcc warning */
319
307
  virtual Item_bool_func2* create(Item *a, Item *b) const;
320
308
  virtual const char* symbol(bool invert) const { return invert? ">" : "<="; }
321
309
  virtual bool eqne_op() const { return 0; }
997
985
{
998
986
  int64_t value;
999
987
public:
1000
 
  cmp_item_int() {}                           /* Remove gcc warning */
1001
988
  void store_value(Item *item)
1002
989
  {
1003
990
    value= item->val_int();
1043
1030
{
1044
1031
  double value;
1045
1032
public:
1046
 
  cmp_item_real() {}                          /* Remove gcc warning */
1047
1033
  void store_value(Item *item)
1048
1034
  {
1049
1035
    value= item->val_real();
1065
1051
{
1066
1052
  type::Decimal value;
1067
1053
public:
1068
 
  cmp_item_decimal() {}                       /* Remove gcc warning */
1069
1054
  void store_value(Item *item);
1070
1055
  int cmp(Item *arg);
1071
1056
  int compare(cmp_item *c);