From 1d17fd7d51f7100038eaa5fb4cb372c785a44010 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 12 Oct 2003 17:56:05 +0300 Subject: fixed printability of Items (all items except subselects) (SCRUM) (WL#1274) sql/item.cc: fixed printability of Items sql/item.h: fixed printability of Items sql/item_cmpfunc.cc: fixed printability of Items sql/item_cmpfunc.h: fixed printability of Items sql/item_func.cc: fixed printability of Items sql/item_func.h: fixed printability of Items sql/item_geofunc.h: added DBUG_ASSERT to catch error in debuging timw sql/item_row.cc: fixed printability of Items sql/item_row.h: fixed printability of Items sql/item_strfunc.cc: fixed printability of Items sql/item_strfunc.h: fixed printability of Items sql/item_sum.cc: fixed printability of Items sql/item_sum.h: fixed printability of Items sql/item_timefunc.cc: fixed printability of Items sql/item_timefunc.h: layout fixed fixed printability of Items sql/item_uniq.h: fixed printability of Items sql/sql_yacc.yy: layout fixed correct convertion to String --- sql/item_strfunc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sql/item_strfunc.cc') diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index c8ee64dc707..80767fb8866 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -2269,6 +2269,14 @@ String *Item_func_hex::val_str(String *str) } +void Item_func_binary::print(String *str) +{ + str->append("cast("); + args[0]->print(str); + str->append("as binary)"); +} + + #include // For my_stat String *Item_load_file::val_str(String *str) -- cgit v1.2.1