summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2002-10-25 13:58:32 +0500
committerunknown <bar@bar.mysql.r18.ru>2002-10-25 13:58:32 +0500
commite8237515485b53bd0662e5fc5592bea5507594b8 (patch)
treed8d121f81f5cf89edfe070e49636482fd879f1fa /sql/item.h
parent372b26e7786dcc812bc5fd2e8541d8c58201ea5b (diff)
downloadmariadb-git-e8237515485b53bd0662e5fc5592bea5507594b8.tar.gz
BINARY charset is now used instead of binary_flag
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/item.h b/sql/item.h
index 497a43c2214..fc36148e443 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -43,7 +43,6 @@ public:
uint8 marker,decimals;
my_bool maybe_null; /* If item may be null */
my_bool null_value; /* if item is null */
- my_bool binary;
my_bool unsigned_flag;
my_bool with_sum_func;
@@ -84,7 +83,10 @@ public:
virtual void split_sum_func(List<Item> &fields) {}
virtual bool get_date(TIME *ltime,bool fuzzydate);
virtual bool get_time(TIME *ltime);
- virtual bool is_null() { return 0; }
+ virtual bool is_null() { return 0; };
+ virtual CHARSET_INFO *charset() const { return str_value.charset(); };
+ virtual bool binary() const { return str_value.charset()->state & MY_CS_BINSORT ? 1 : 0 ; }
+ virtual void set_charset(CHARSET_INFO *cs) { str_value.set_charset(cs); }
};
@@ -361,7 +363,7 @@ public:
class Item_varbinary :public Item
{
public:
- Item_varbinary(const char *str,uint str_length,CHARSET_INFO *cs);
+ Item_varbinary(const char *str,uint str_length);
~Item_varbinary() {}
enum Type type() const { return VARBIN_ITEM; }
double val() { return (double) Item_varbinary::val_int(); }