summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-12-20 00:55:32 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-12-20 00:55:32 +0400
commita05a566cf0f14bb71740ea7f54f371b4df4f9604 (patch)
tree2a7da6428c30ae1845906c75e5924ccf95e748a8 /sql/item_func.h
parent15ea7238e42ea62da32c926c0a1667802f7646d9 (diff)
downloadmariadb-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.h1
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() {}