~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

  • Committer: Brian Aker
  • Date: 2011-01-22 07:20:17 UTC
  • mfrom: (2098.3.4 timestamp)
  • Revision ID: brian@tangent.org-20110122072017-1y8v3z1z3v9ml6tb
MergeĀ inĀ timestamp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
typedef int (*Item_field_cmpfunc)(Item_field *f1, Item_field *f2, void *arg);
51
51
 
52
 
uint64_t get_datetime_value(Session *session, 
53
 
                            Item ***item_arg, 
54
 
                            Item **cache_arg,
55
 
                            Item *warn_item, 
56
 
                            bool *is_null);
 
52
int64_t get_datetime_value(Session *session, 
 
53
                           Item ***item_arg, 
 
54
                           Item **cache_arg,
 
55
                           Item *warn_item, 
 
56
                           bool *is_null);
57
57
 
58
58
class Arg_comparator: public memory::SqlAlloc
59
59
{
69
69
  bool is_nulls_eq;                // TRUE <=> compare for the EQUAL_FUNC
70
70
  enum enum_date_cmp_type { CMP_DATE_DFLT= 0, CMP_DATE_WITH_DATE,
71
71
                            CMP_DATE_WITH_STR, CMP_STR_WITH_DATE };
72
 
  uint64_t (*get_value_func)(Session *session, Item ***item_arg, Item **cache_arg,
73
 
                              Item *warn_item, bool *is_null);
 
72
  int64_t (*get_value_func)(Session *session, Item ***item_arg, Item **cache_arg,
 
73
                            Item *warn_item, bool *is_null);
74
74
public:
75
75
  DTCollation cmp_collation;
76
76
 
118
118
  int compare_datetime();        // compare args[0] & args[1] as DATETIMEs
119
119
 
120
120
  static enum enum_date_cmp_type can_compare_as_dates(Item *a, Item *b,
121
 
                                                      uint64_t *const_val_arg);
 
121
                                                      int64_t *const_val_arg);
122
122
 
123
123
  void set_datetime_cmp_func(Item **a1, Item **b1);
124
124
  static arg_cmp_func comparator_matrix [5][2];
1028
1028
*/
1029
1029
class cmp_item_datetime :public cmp_item
1030
1030
{
1031
 
  uint64_t value;
 
1031
  int64_t value;
 
1032
 
1032
1033
public:
1033
1034
  Session *session;
1034
1035
  /* Item used for issuing warnings. */