diff options
author | unknown <monty@mashka.mysql.fi> | 2002-11-25 17:33:51 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-11-25 17:33:51 +0200 |
commit | 1b9becc35824401f22b4e7c2b2f9b3dab5348fe9 (patch) | |
tree | 5b47ce28ff625bae821d7bbc89fc86a74bc810a1 /sql/item.h | |
parent | 0985653c1f820badb4ab642fe8e9f1287fd20656 (diff) | |
download | mariadb-git-1b9becc35824401f22b4e7c2b2f9b3dab5348fe9.tar.gz |
Fixed CAST( xxx as CHAR)
sql/item.h:
Made some virtual functions non virtual (as they are not used virtually)
sql/item_strfunc.cc:
Optimizations.
sql/item_strfunc.h:
Fixed BINARY handling
sql/sql_string.h:
Indentation cleanups
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/item.h b/sql/item.h index 5eeaa22a2a2..34ca221cadc 100644 --- a/sql/item.h +++ b/sql/item.h @@ -85,12 +85,14 @@ public: virtual bool get_date(TIME *ltime,bool fuzzydate); virtual bool get_time(TIME *ltime); virtual bool is_null() { return 0; }; - virtual CHARSET_INFO *thd_charset() const; - 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); } virtual bool check_loop(uint id); virtual void top_level_item() {} + + virtual bool binary() const + { return str_value.charset()->state & MY_CS_BINSORT ? 1 : 0 ; } + CHARSET_INFO *thd_charset() const; + CHARSET_INFO *charset() const { return str_value.charset(); }; + void set_charset(CHARSET_INFO *cs) { str_value.set_charset(cs); } }; |