summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-11-26 02:31:22 +0200
committerunknown <monty@mysql.com>2004-11-26 02:31:22 +0200
commit60af920628c435a5990c3ef7a753d0f374fc12cc (patch)
treef3f4600d006f2d2d7d31180814236decb181095f /sql/item_cmpfunc.cc
parentfecd27a1063ef32c7d1d3149321323de2c943364 (diff)
downloadmariadb-git-60af920628c435a5990c3ef7a753d0f374fc12cc.tar.gz
Fixes while reviewing code
(Cleanups and better bug fixes) mysql-test/r/select.result: Fixed test after wrong merge mysql-test/t/select.test: Fixed test after wrong merge scripts/mysql_fix_privilege_tables.sh: Don't read defaults files sql/item_cmpfunc.cc: Fix wrong value for not_null_tables_cache sql/item_cmpfunc.h: Remove wrong patch (flags are set in fix_length_and_dec()) sql/item_func.h: Fix wrong value for not_null_tables_cache sql/slave.cc: Fixed indentation
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index fbc1ad97e76..107a17815ae 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -293,9 +293,9 @@ void Item_func_interval::fix_length_and_dec()
}
maybe_null=0; max_length=2;
used_tables_cache|= item->used_tables();
- not_null_tables_cache&= item->not_null_tables();
+ not_null_tables_cache= item->not_null_tables();
with_sum_func= with_sum_func || item->with_sum_func;
- const_item_cache&=item->const_item();
+ const_item_cache&= item->const_item();
}
@@ -1087,7 +1087,8 @@ void Item_func_in::fix_length_and_dec()
maybe_null= item->maybe_null;
max_length=2;
used_tables_cache|= item->used_tables();
- not_null_tables_cache&= item->not_null_tables();
+ /* not_null_tables_cache is only dependent on the argument to in */
+ not_null_tables_cache= item->not_null_tables();
const_item_cache&= item->const_item();
}