diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-06-16 18:43:05 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-06-16 18:43:05 +0500 |
commit | 7b2357e03a4bbeb93ff491de3758c7c27cab71ed (patch) | |
tree | b689623d657d0ff52d5410ad9d072c711bccc053 /sql/item.h | |
parent | a35bd157733b419b042b7bb0d051840ce5383324 (diff) | |
download | mariadb-git-7b2357e03a4bbeb93ff491de3758c7c27cab71ed.tar.gz |
a fix (Bug #4102 Crash with a DBUG window after a request)
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h index e373eb112c0..794f58eaf5d 100644 --- a/sql/item.h +++ b/sql/item.h @@ -820,7 +820,10 @@ public: void save_org_in_field(Field *field) { (*ref)->save_org_in_field(field); } enum Item_result result_type () const { return (*ref)->result_type(); } enum_field_types field_type() const { return (*ref)->field_type(); } - table_map used_tables() const { return (*ref)->used_tables(); } + table_map used_tables() const + { + return depended_from ? OUTER_REF_TABLE_BIT : (*ref)->used_tables(); + } void set_result_field(Field *field) { result_field= field; } bool is_result_field() { return 1; } void save_in_result_field(bool no_conversions) |