summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-08-07 21:19:43 +0300
committerunknown <monty@mashka.mysql.fi>2003-08-07 21:19:43 +0300
commitf4646c0d063fb541f48dd2824ecccea464a9958d (patch)
treeae1adf314b74af9f9885cef15ab9ffb8974d3e2d /sql/item.h
parent553daa5e40b413489431d5d21b512c6b529bccac (diff)
parentb9aa175cb282ce92e733412a74e23ba750f8dd80 (diff)
downloadmariadb-git-f4646c0d063fb541f48dd2824ecccea464a9958d.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mashka.mysql.fi:/home/my/mysql-4.1 BitKeeper/etc/logging_ok: auto-union sql/item_func.cc: Auto merged
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/sql/item.h b/sql/item.h
index 9df6532a637..621dc017d25 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -169,21 +169,6 @@ public:
virtual Item *get_tmp_table_item(THD *thd) { return copy_or_same(thd); }
CHARSET_INFO *default_charset() const;
- Derivation derivation() const { return collation.derivation; }
- CHARSET_INFO *charset() const { return collation.collation; }
- void set_charset(CHARSET_INFO *cs)
- { collation.collation= cs; }
- void set_charset(Derivation dv)
- { collation.derivation= dv; }
- void set_charset(CHARSET_INFO *cs, Derivation dv)
- { collation.collation= cs; collation.derivation= dv; }
- void set_charset(Item &item)
- { collation= item.collation; }
- void set_charset(DTCollation *collation_arg)
- {
- collation.collation= collation_arg->collation;
- collation.derivation= collation_arg->derivation;
- }
virtual void set_outer_resolving() {}
// Row emulation
@@ -229,7 +214,7 @@ public:
Item_field(const char *db_par,const char *table_name_par,
const char *field_name_par)
:Item_ident(db_par,table_name_par,field_name_par),field(0),result_field(0)
- { set_charset(DERIVATION_IMPLICIT); }
+ { collation.set(DERIVATION_IMPLICIT); }
// Constructor need to process subselect with temporary tables (see Item)
Item_field(THD *thd, Item_field &item);
Item_field(Field *field);
@@ -432,7 +417,7 @@ public:
Item_string(const char *str,uint length,
CHARSET_INFO *cs, Derivation dv= DERIVATION_COERCIBLE)
{
- set_charset(cs, dv);
+ collation.set(cs, dv);
str_value.set(str,length,cs);
max_length=length;
set_name(str, length, cs);
@@ -441,7 +426,7 @@ public:
Item_string(const char *name_par, const char *str, uint length,
CHARSET_INFO *cs, Derivation dv= DERIVATION_COERCIBLE)
{
- set_charset(cs, dv);
+ collation.set(cs, dv);
str_value.set(str,length,cs);
max_length=length;
set_name(name_par,0,cs);