diff options
author | unknown <bell@sanja.is.com.ua> | 2003-05-14 22:01:56 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-05-14 22:01:56 +0300 |
commit | c4bc507fdd8496990a3e3d6feee9232b7de45394 (patch) | |
tree | 4b54009b3a4f4c6fbdbc633f8c8a742a4410cc6f /sql/item.h | |
parent | 40e4b8d0cb1faf39acbfddc0e30f3e2d209bb4c2 (diff) | |
parent | a32b868c3b930b512ffd840c2708e0ee894507b1 (diff) | |
download | mariadb-git-c4bc507fdd8496990a3e3d6feee9232b7de45394.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.cc:
Auto merged
sql/item.h:
Auto merged
sql/item_cmpfunc.cc:
Auto merged
sql/item_subselect.cc:
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 111892df688..3c2e0b8b32f 100644 --- a/sql/item.h +++ b/sql/item.h @@ -100,7 +100,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; } @@ -560,6 +560,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(')'); + } }; @@ -605,6 +614,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(')'); + } }; /* |