diff options
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/sql/item.cc b/sql/item.cc index 4de4951cb51..ccca858c4c0 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -474,9 +474,19 @@ String *Item_real::val_str(String *str) void Item_string::print(String *str) { - str->append('\''); - str->append(full_name()); - str->append('\''); + str->append('_'); + str->append(collation.collation->csname); + if (varbin) + { + str->append(' '); + str->append(full_name()); + } + else + { + str->append('\''); + str->append(full_name()); + str->append('\''); + } } bool Item_null::eq(const Item *item, bool binary_cmp) const |