diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-12-20 00:55:32 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-12-20 00:55:32 +0400 |
commit | a05a566cf0f14bb71740ea7f54f371b4df4f9604 (patch) | |
tree | 2a7da6428c30ae1845906c75e5924ccf95e748a8 /sql/item_func.h | |
parent | 15ea7238e42ea62da32c926c0a1667802f7646d9 (diff) | |
download | mariadb-git-a05a566cf0f14bb71740ea7f54f371b4df4f9604.tar.gz |
BUG#906357: Incorrect result with outer join and full text match
- The problem was that const-table-reading code would try to evaluate MATCH()
before init_ftfuncs() was called.
- Fixed by making MATCH function "expensive" so that nobody tries to evaluate it
at optimization phase.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 54635bf21f7..abaf07c51d5 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -1676,6 +1676,7 @@ public: table= 0; // required by Item_func_match::eq() DBUG_VOID_RETURN; } + bool is_expensive_processor(uchar *arg) { return TRUE; } enum Functype functype() const { return FT_FUNC; } const char *func_name() const { return "match"; } void update_used_tables() {} |