diff options
author | unknown <serg@serg.mysql.com> | 2001-02-06 14:50:31 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2001-02-06 14:50:31 +0100 |
commit | 5a1ae6d4ceda7534522fce30e97c07693cf6015b (patch) | |
tree | 8576982cab36fe5eccd11f17ffdf9f9e1cec92a6 /sql | |
parent | 669cc1992a39fa621249318e55415dfd5a4f1740 (diff) | |
parent | 06da1723bf8655968a04555364ea74f4585cefc2 (diff) | |
download | mariadb-git-5a1ae6d4ceda7534522fce30e97c07693cf6015b.tar.gz |
Merge work:/home/bk/mysql into serg.mysql.com:/usr/home/serg/Abk/mysql
Diffstat (limited to 'sql')
-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) { |