~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item_cmpfunc.h

Heap builds clean.
Moved my_handler.c back to mysys - I missed that heap also uses it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
  }
364
364
  Item *neg_transformer(THD *thd);
365
365
  virtual Item *negated_item();
366
 
  bool subst_argument_checker(uchar **arg) { return TRUE; }
 
366
  bool subst_argument_checker(uchar **arg __attribute__((__unused__)))
 
367
  { return TRUE; }
367
368
};
368
369
 
369
370
class Item_func_not :public Item_bool_func
483
484
  enum Functype rev_functype() const { return EQUAL_FUNC; }
484
485
  cond_result eq_cmp_result() const { return COND_TRUE; }
485
486
  const char *func_name() const { return "<=>"; }
486
 
  Item *neg_transformer(THD *thd) { return 0; }
 
487
  Item *neg_transformer(THD *thd __attribute__((__unused__))) { return 0; }
487
488
};
488
489
 
489
490
 
574
575
public:
575
576
  inline void negate() { negated= !negated; }
576
577
  inline void top_level_item() { pred_level= 1; }
577
 
  Item *neg_transformer(THD *thd)
 
578
  Item *neg_transformer(THD *thd __attribute__((__unused__)))
578
579
  {
579
580
    negated= !negated;
580
581
    return this;
581
582
  }
582
583
  bool eq(const Item *item, bool binary_cmp) const;
583
 
  bool subst_argument_checker(uchar **arg) { return TRUE; }
 
584
  bool subst_argument_checker(uchar **arg __attribute__((__unused__)))
 
585
  { return TRUE; }
584
586
};
585
587
 
586
588
 
781
783
        item  Constant item to store value into. The item must be of the same
782
784
              type that create_item() returns.
783
785
  */
784
 
  virtual void value_to_item(uint pos, Item *item) { }
 
786
  virtual void value_to_item(uint pos __attribute__((__unused__)),
 
787
                             Item *item __attribute__((__unused__))) { }
785
788
  
786
789
  /* Compare values number pos1 and pos2 for equality */
787
790
  bool compare_elems(uint pos1, uint pos2)
932
935
  virtual int compare(cmp_item *item)= 0;
933
936
  static cmp_item* get_comparator(Item_result type, CHARSET_INFO *cs);
934
937
  virtual cmp_item *make_same()= 0;
935
 
  virtual void store_value_by_template(cmp_item *tmpl, Item *item)
 
938
  virtual void store_value_by_template(cmp_item *tmpl  __attribute__((__unused__)),
 
939
                                       Item *item)
936
940
  {
937
941
    store_value(item);
938
942
  }
1081
1085
  {
1082
1086
    value_res= item->val_str(&value);
1083
1087
  }
1084
 
  int cmp(Item *item)
 
1088
  int cmp(Item *item __attribute__((__unused__)))
1085
1089
  {
1086
1090
    // Should never be called
1087
1091
    DBUG_ASSERT(0);
1434
1438
  void traverse_cond(Cond_traverser, void *arg, traverse_order order);
1435
1439
  void neg_arguments(THD *thd);
1436
1440
  enum_field_types field_type() const { return MYSQL_TYPE_LONGLONG; }
1437
 
  bool subst_argument_checker(uchar **arg) { return TRUE; }
 
1441
  bool subst_argument_checker(uchar **arg __attribute__((__unused__)))
 
1442
  { return TRUE; }
1438
1443
  Item *compile(Item_analyzer analyzer, uchar **arg_p,
1439
1444
                Item_transformer transformer, uchar *arg_t);
1440
1445
};