summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorbell@laptop.sanja.is.com.ua <>2003-10-12 17:56:05 +0300
committerbell@laptop.sanja.is.com.ua <>2003-10-12 17:56:05 +0300
commitddf4d1e5292f226f266a486b84c70e01ec1f93fe (patch)
tree2d243d69c4c8bafa98d2f0bd9b6ed43fea552637 /sql/item.h
parentd6d6c5e1bb78215da668634310f592a9b4263db1 (diff)
downloadmariadb-git-ddf4d1e5292f226f266a486b84c70e01ec1f93fe.tar.gz
fixed printability of Items (all items except subselects)
(SCRUM) (WL#1274)
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index a126a61e32e..5e6df464fb3 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -449,9 +449,11 @@ public:
class Item_string :public Item
{
+ bool varbin;
public:
Item_string(const char *str,uint length,
CHARSET_INFO *cs, Derivation dv= DERIVATION_COERCIBLE)
+ :varbin(0)
{
collation.set(cs, dv);
str_value.set(str,length,cs);
@@ -461,6 +463,7 @@ public:
}
Item_string(const char *name_par, const char *str, uint length,
CHARSET_INFO *cs, Derivation dv= DERIVATION_COERCIBLE)
+ :varbin(0)
{
collation.set(cs, dv);
str_value.set(str,length,cs);
@@ -494,6 +497,7 @@ public:
}
String *const_string() { return &str_value; }
inline void append(char *str, uint length) { str_value.append(str, length); }
+ inline void set_varbin_name(char *nm) { name= nm; varbin= 1; }
void print(String *str);
};
@@ -646,7 +650,7 @@ public:
bool get_date(TIME *ltime, bool fuzzydate);
void print(String *str)
{
- str->append("ref_null_helper(");
+ str->append("<ref_null_helper>(");
if (ref && *ref)
(*ref)->print(str);
else
@@ -664,6 +668,12 @@ public:
:Item_ref_null_helper(master, &store, table_name_par, field_name_par),
store(item)
{}
+ void print(String *str)
+ {
+ str->append("<null_helper>(");
+ store->print(str);
+ str->append(')');
+ }
};
/*