diff options
author | unknown <bar@mysql.com> | 2005-07-13 13:00:17 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-07-13 13:00:17 +0500 |
commit | 4a2af29fe784ff10b7506ee39d7054859fc6eb51 (patch) | |
tree | 9041e1c0fb031c01d3baa28560c8df50c1a532e1 /sql/item.h | |
parent | 3378673653108ee89e8011e1d18cd394aea13039 (diff) | |
download | mariadb-git-4a2af29fe784ff10b7506ee39d7054859fc6eb51.tar.gz |
ctype_utf8.result:
adding test case
sql_table.cc:
sql_table.cc:
- do not create a new item when charsets are the same
- return ER_INVALID_DEFAULT if default value cannot
be converted into the column character set.
item.cc:
- Allow conversion not only to Unicode,
but also to and from "binary".
- Adding safe_charset_converter() for Item_num
and Item_varbinary, returning a fixed const Item.
sql/item.cc:
- Allow conversion not only to Unicode,
but also to and from "binary".
- Adding safe_charset_converter() for Item_num
and Item_varbinary, returning a fixed const Item.
sql/sql_table.cc:
sql_table.cc:
- do not create a new item when charsets are the same
- return ER_INVALID_DEFAULT if default value cannot
be converted into the column character set.
mysql-test/r/ctype_utf8.result:
adding test case
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h index 8de2adeb730..20d6718609c 100644 --- a/sql/item.h +++ b/sql/item.h @@ -334,6 +334,7 @@ class Item_num: public Item { public: virtual Item_num *neg()= 0; + Item *safe_charset_converter(CHARSET_INFO *tocs); }; #define NO_CACHED_FIELD_INDEX ((uint)(-1)) @@ -835,6 +836,7 @@ public: // to prevent drop fixed flag (no need parent cleanup call) void cleanup() {} bool eq(const Item *item, bool binary_cmp) const; + virtual Item *safe_charset_converter(CHARSET_INFO *tocs); }; |