17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef DRIZZLED_DTCOLLATION_H
21
#define DRIZZLED_DTCOLLATION_H
23
22
#include <drizzled/definitions.h>
23
#include <drizzled/visibility.h>
27
class DRIZZLED_API DTCollation
29
typedef struct charset_info_st CHARSET_INFO;
34
const CHARSET_INFO *collation;
30
const charset_info_st *collation;
35
31
enum Derivation derivation;
38
DTCollation(const CHARSET_INFO * const collation_arg,
39
Derivation derivation_arg);
33
DRIZZLED_LOCAL DTCollation();
34
DRIZZLED_LOCAL DTCollation(const charset_info_st * const collation_arg,
35
Derivation derivation_arg);
40
36
void set(DTCollation &dt);
41
void set(const CHARSET_INFO * const collation_arg,
37
void set(const charset_info_st * const collation_arg,
42
38
Derivation derivation_arg);
43
void set(const CHARSET_INFO * const collation_arg);
39
void set(const charset_info_st * const collation_arg);
44
40
void set(Derivation derivation_arg);
45
41
bool set(DTCollation &dt1, DTCollation &dt2, uint32_t flags= 0);
83
bool aggregate(DTCollation &dt, uint32_t flags= 0);
79
DRIZZLED_LOCAL bool aggregate(DTCollation &dt, uint32_t flags= 0);
85
const char *derivation_name() const;
81
DRIZZLED_LOCAL const char *derivation_name() const;