← Back to team overview

maria-developers team mailing list archive

Re: MATCH returns -1

 

Hi, Alexander!

On Jun 08, Alexander Barkov wrote:
> >
> >    double Item_func_match::val_real()
> >    {
> >      DBUG_ENTER("Item_func_match::val");
> >      if (ft_handler == NULL)
> >        DBUG_RETURN(-1.0);
> >
> >> Is this a bug?
> > I believe so!
> 
> What should happen instead?
> Should it return 1 instead of -1?
> Or, should we disallow MATCH in this context?

I think (don't remember exactly) that ft_handler should never be NULL
when val_real() is called. It's NULL because the initialization code
hasn't been called. This shoud be fixed.

Regards,
Sergei
Chief Architect MariaDB
and security@xxxxxxxxxxx


References