diff options
author | unknown <serg@serg.mylan> | 2005-03-13 16:34:40 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-03-13 16:34:40 +0100 |
commit | 2427f3695ccd495eb33ce10c3fb3a636823e8850 (patch) | |
tree | 254e6f7485d61866406b23139ea1dfecd5af5896 /sql/item_cmpfunc.h | |
parent | 7cecea527d5fcfa7c12c55ee3c95347ee8f43b15 (diff) | |
download | mariadb-git-2427f3695ccd495eb33ce10c3fb3a636823e8850.tar.gz |
correct not_null_tables() for XOR and AND
correct top_level_item for XOR
mysql-test/r/join_outer.result:
one more test
mysql-test/t/join_outer.test:
one more test
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 7c48854850e..37b0674a094 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -966,6 +966,8 @@ public: enum Functype functype() const { return COND_AND_FUNC; } longlong val_int(); const char *func_name() const { return "and"; } + table_map not_null_tables() const + { return abort_on_null ? not_null_tables_cache: and_tables_cache; } Item* copy_andor_structure(THD *thd) { Item_cond_and *item; @@ -1013,7 +1015,7 @@ public: enum Type type() const { return FUNC_ITEM; } longlong val_int(); const char *func_name() const { return "xor"; } - table_map not_null_tables() const { return and_tables_cache; } + void top_level_item() {} }; |