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().
This commit is contained in:
unknown 2005-03-24 18:10:46 +04:00
commit 9b2e4c7c60
4 changed files with 40 additions and 1 deletions

View file

@ -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