Subject | RE: [firebird-support] Usage of expression index - Known limitation? |
---|---|
Author | Leyne, Sean |
Post date | 2008-07-21T16:28:09Z |
Hey Thomas!
This is a known limitation of the *LIKE operator*.
{though I'm not sure this particular twist has been logged in the
tracker}
I tried the same statements with a "standard" index and they exhibited
the same modes.
Sean
> is the following a known limitation, as designed or a bug?upper('arc')
>
> * The following queries uses an UPPER index on NAME:
>
> select * from accommodation where upper(name) like 'ARC%'
> select * from accommodation where upper(name) starting with 'ARC'
> select * from accommodation where upper(name) starting with
>The issue is not with the expression index.
>
> *But the following does not:
>
> select * from accommodation where upper(name) like upper('arc%')
> select * from accommodation where upper(name) like upper('arc')
This is a known limitation of the *LIKE operator*.
{though I'm not sure this particular twist has been logged in the
tracker}
I tried the same statements with a "standard" index and they exhibited
the same modes.
Sean