On Thu, Mar 12, 2015 at 12:03 AM, Viktor Dukhovni
<postfix-us...@dukhovni.org> wrote:
>
> You may well be able to do something with advanced SQL string
> manipulation to short-circuit queries that contain "+".
>
>         SELECT result
>         FROM table
>         WHERE key = '%u@%d'
>         AND key NOT LIKE '%%+%%'
>
> An SQL server may well optimize that query away when the key contains
> a "+" and not do any disk I/O.

In this case, SQL is flexible. but any solution for LDAP table? we cannot do
this in ldap query filter.

Again, thanks for your help. :)

Reply via email to