~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

  • Committer: Brian Aker
  • Date: 2008-12-04 19:04:01 UTC
  • Revision ID: brian@tangent.org-20081204190401-0aatrta3mo36swbk
Next pass through attribute.

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
  }
370
370
  Item *neg_transformer(Session *session);
371
371
  virtual Item *negated_item();
372
 
  bool subst_argument_checker(unsigned char **arg __attribute__((unused)))
 
372
  bool subst_argument_checker(unsigned char **)
373
373
  { return true; }
374
374
};
375
375
 
490
490
  enum Functype rev_functype() const { return EQUAL_FUNC; }
491
491
  cond_result eq_cmp_result() const { return COND_TRUE; }
492
492
  const char *func_name() const { return "<=>"; }
493
 
  Item *neg_transformer(Session *session __attribute__((unused))) { return 0; }
 
493
  Item *neg_transformer(Session *) { return 0; }
494
494
};
495
495
 
496
496
 
581
581
public:
582
582
  inline void negate() { negated= !negated; }
583
583
  inline void top_level_item() { pred_level= 1; }
584
 
  Item *neg_transformer(Session *session __attribute__((unused)))
 
584
  Item *neg_transformer(Session *)
585
585
  {
586
586
    negated= !negated;
587
587
    return this;
588
588
  }
589
589
  bool eq(const Item *item, bool binary_cmp) const;
590
 
  bool subst_argument_checker(unsigned char **arg __attribute__((unused)))
 
590
  bool subst_argument_checker(unsigned char **)
591
591
  { return true; }
592
592
};
593
593
 
789
789
        item  Constant item to store value into. The item must be of the same
790
790
              type that create_item() returns.
791
791
  */
792
 
  virtual void value_to_item(uint32_t pos __attribute__((unused)),
793
 
                             Item *item __attribute__((unused))) { }
 
792
  virtual void value_to_item(uint32_t, Item *) { }
794
793
  
795
794
  /* Compare values number pos1 and pos2 for equality */
796
795
  bool compare_elems(uint32_t pos1, uint32_t pos2)
941
940
  virtual int compare(cmp_item *item)= 0;
942
941
  static cmp_item* get_comparator(Item_result type, const CHARSET_INFO * const cs);
943
942
  virtual cmp_item *make_same()= 0;
944
 
  virtual void store_value_by_template(cmp_item *tmpl  __attribute__((unused)),
945
 
                                       Item *item)
 
943
  virtual void store_value_by_template(cmp_item *, Item *item)
946
944
  {
947
945
    store_value(item);
948
946
  }
1091
1089
  {
1092
1090
    value_res= item->val_str(&value);
1093
1091
  }
1094
 
  int cmp(Item *item __attribute__((unused)))
 
1092
  int cmp(Item *)
1095
1093
  {
1096
1094
    // Should never be called
1097
1095
    assert(0);
1443
1441
  void traverse_cond(Cond_traverser, void *arg, traverse_order order);
1444
1442
  void neg_arguments(Session *session);
1445
1443
  enum_field_types field_type() const { return DRIZZLE_TYPE_LONGLONG; }
1446
 
  bool subst_argument_checker(unsigned char **arg __attribute__((unused)))
 
1444
  bool subst_argument_checker(unsigned char **)
1447
1445
  { return true; }
1448
1446
  Item *compile(Item_analyzer analyzer, unsigned char **arg_p,
1449
1447
                Item_transformer transformer, unsigned char *arg_t);