Commit 4abc67f1 authored by unknown's avatar unknown

item_func.cc auto-init of ft-index restored (to cope with const/system tables)


sql/item_func.cc:
  auto-init of ft-index restored (to cope with const/system tables)
parent be27c9de
...@@ -1867,12 +1867,11 @@ longlong Item_func_inet_aton::val_int() ...@@ -1867,12 +1867,11 @@ longlong Item_func_inet_aton::val_int()
double Item_func_match::val() 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) if (ft_handler==NULL)
return -1.0; init_search(1);
if (null_value=(ft_handler==NULL))
return 0.0;
if (join_key) if (join_key)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment