summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorbar@mysql.com <>2005-03-24 18:10:46 +0400
committerbar@mysql.com <>2005-03-24 18:10:46 +0400
commit29ffcad226e35e0c101253b35a73d83bdc98fbde (patch)
tree81eae1c53c9ad3b50b7abb5e8f22486ae989ca6b /sql/item_func.h
parentbd74a139dc37d764d2fd3cbaeb79ff5371a35875 (diff)
downloadmariadb-git-29ffcad226e35e0c101253b35a73d83bdc98fbde.tar.gz
Fixed that LEFT OUTER JOIN was replaced with a regulat join
in some cases, because "charset(x) = 'string'" was considered as "x is not null" due to incorrect not_null_tables().
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 2738c7419ca..bfc3bb0de8b 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -616,7 +616,8 @@ public:
Item_func_coercibility(Item *a) :Item_int_func(a) {}
longlong val_int();
const char *func_name() const { return "coercibility"; }
- void fix_length_and_dec() { max_length=10; }
+ void fix_length_and_dec() { max_length=10; maybe_null= 0; }
+ table_map not_null_tables() const { return 0; }
};
class Item_func_locate :public Item_int_func