~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/dtcollation.h

  • Committer: Brian Aker
  • Date: 2009-01-07 21:26:58 UTC
  • Revision ID: brian@tangent.org-20090107212658-2fh0s2uwh10w68y2
Committing fix lock_multi

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_DTCOLLATION_H
21
21
#define DRIZZLED_DTCOLLATION_H
22
22
 
 
23
#include <stdint.h>
 
24
 
23
25
#include <drizzled/definitions.h>
24
26
 
25
 
namespace drizzled
26
 
{
27
 
 
28
27
class Item;
29
28
typedef struct charset_info_st CHARSET_INFO;
30
29
 
33
32
public:
34
33
  const CHARSET_INFO *collation;
35
34
  enum Derivation derivation;
 
35
  uint32_t repertoire;
 
36
 
 
37
  void set_repertoire_from_charset(const CHARSET_INFO * const cs);
36
38
 
37
39
  DTCollation();
38
40
  DTCollation(const CHARSET_INFO * const collation_arg,
40
42
  void set(DTCollation &dt);
41
43
  void set(const CHARSET_INFO * const collation_arg,
42
44
           Derivation derivation_arg);
 
45
  void set(const CHARSET_INFO * const collation_arg,
 
46
           Derivation derivation_arg,
 
47
           uint32_t repertoire_arg);
43
48
  void set(const CHARSET_INFO * const collation_arg);
44
49
  void set(Derivation derivation_arg);
45
50
  bool set(DTCollation &dt1, DTCollation &dt2, uint32_t flags= 0);
94
99
                                        Item **items, uint32_t nitems,
95
100
                                        uint32_t flags);
96
101
 
97
 
/*
98
 
 
99
 
 @note In Drizzle we have just one charset, so no conversion is required (though collation may).
100
 
 
 
102
/**
101
103
  Collect arguments' character sets together.
102
104
 
103
105
  We allow to apply automatic character set conversion in some cases.
138
140
void my_coll_agg_error(Item** args, uint32_t count, const char *fname,
139
141
                       int item_sep);
140
142
 
141
 
} /* namespace drizzled */
142
 
 
143
143
#endif /* DRIZZLED_DTCOLLATION_H */