diff options
author | serg@serg.mysql.com <> | 2001-02-06 14:10:13 +0100 |
---|---|---|
committer | serg@serg.mysql.com <> | 2001-02-06 14:10:13 +0100 |
commit | 94681d0fedf813fe04f6b95b21831b0402ce4e2a (patch) | |
tree | 647a20e09c79fdc1bed5c27095d13cd5c216e836 /sql/item_func.cc | |
parent | e13c21a732a5e961db2936533f2fef9ce565f5eb (diff) | |
download | mariadb-git-94681d0fedf813fe04f6b95b21831b0402ce4e2a.tar.gz |
item_func.cc auto-init of ft-index restored (to cope with const/system tables)
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index ed25a471179..bad9c7c355c 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -1867,12 +1867,11 @@ err: double Item_func_match::val() { - /* If called uninitialized we should return neither NULL nor 0 (important - for const_tables) so, let's return -1, which is obviously incorrect - for normal operation, and could be easily spotted */ - if (ft_handler==NULL) - return -1.0; + init_search(1); + + if (null_value=(ft_handler==NULL)) + return 0.0; if (join_key) { |