diff options
author | monty@mysql.com <> | 2005-02-28 12:18:39 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-02-28 12:18:39 +0200 |
commit | 3839e443a4fc031c183434558bc0588639707b36 (patch) | |
tree | f466a4f954ca82d8aae5e4d3ab0a985e7fdce2f7 /sql/field.h | |
parent | 21ca91aac6ed60571e9ccfe3af02c6bc32acd1f7 (diff) | |
parent | ab11370de686d656f34cedab2b06f35b3e84a315 (diff) | |
download | mariadb-git-3839e443a4fc031c183434558bc0588639707b36.tar.gz |
merge with 4.1
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index cfed2eb19e1..a92ef1db297 100644 --- a/sql/field.h +++ b/sql/field.h @@ -276,6 +276,7 @@ public: virtual bool get_date(TIME *ltime,uint fuzzydate); virtual bool get_time(TIME *ltime); virtual CHARSET_INFO *charset(void) const { return &my_charset_bin; } + virtual CHARSET_INFO *sort_charset(void) const { return charset(); } virtual bool has_charset(void) const { return FALSE; } virtual void set_charset(CHARSET_INFO *charset) { } bool set_warning(const unsigned int level, const unsigned int code, @@ -1255,6 +1256,8 @@ public: bool optimize_range(uint idx, uint part) { return 0; } bool eq_def(Field *field); bool has_charset(void) const { return TRUE; } + /* enum and set are sorted as integers */ + CHARSET_INFO *sort_charset(void) const { return &my_charset_bin; } field_cast_enum field_cast_type() { return FIELD_CAST_ENUM; } }; |