diff options
author | unknown <bell@sanja.is.com.ua> | 2003-05-22 09:52:22 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-05-22 09:52:22 +0300 |
commit | 716d6c47ac7c0027a0f45a7981e1841686fd43f9 (patch) | |
tree | 3dfea9a33ae593d529e5f367c4ac7ff05f7ea1f1 /sql/item.h | |
parent | 4637832fa19b2866929c1e5cb7c9dd0a40db15c9 (diff) | |
parent | 4868c1632cf902bae767123213d76dd53a78e2c6 (diff) | |
download | mariadb-git-716d6c47ac7c0027a0f45a7981e1841686fd43f9.tar.gz |
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-top-4.1
mysql-test/r/subselect.result:
Auto merged
sql/item.h:
Auto merged
sql/item_cmpfunc.cc:
Auto merged
sql/sql_lex.h:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h index 470937f8ee7..ebc9d7e4570 100644 --- a/sql/item.h +++ b/sql/item.h @@ -111,7 +111,7 @@ public: virtual bool get_time(TIME *ltime); virtual bool get_date_result(TIME *ltime,bool fuzzydate) { return get_date(ltime,fuzzydate); } - virtual bool is_null() { return 0; }; + virtual bool is_null() { return 0; } virtual void top_level_item() {} virtual void set_result_field(Field *field) {} virtual bool is_result_field() { return 0; } @@ -571,6 +571,15 @@ public: longlong val_int(); String* val_str(String* s); bool get_date(TIME *ltime, bool fuzzydate); + void print(String *str) + { + str->append("ref_null_helper("); + if (ref && *ref) + (*ref)->print(str); + else + str->append('?'); + str->append(')'); + } }; @@ -616,6 +625,15 @@ public: {} bool fix_fields(THD *, struct st_table_list *, Item ** ref); Item **storage() {return &item;} + void print(String *str) + { + str->append("ref_null_helper('"); + if (item) + item->print(str); + else + str->append('?'); + str->append(')'); + } }; /* |