[SqueakDBX] Link complains about ilike:
Mariano Martinez Peck
marianopeck at gmail.com
Fri Nov 19 17:47:36 UTC 2010
Hi Panu. The thing is that like is not case sensitive neither.
Look:
'abcde' like: 'abc%' true
'aBcde' like: 'abc%' true
'abcde' like: 'aBc%' true
'abcde' ilike: 'abc%' true
'aBcde' ilike: 'abc%' true
'abcde' ilike: 'aBc%' true
Can you provide testcases to show the problem? or the differences between
like and ilike
thanks
mariano
On Fri, Nov 19, 2010 at 8:26 AM, Panu Suominen <panu.suominen at iki.fi> wrote:
> I created following method to the String class. Change set is
> attached. Squeak source was down so I was not able to make a commit
> with monticello.
>
> String>>ilike: wildcardString
> " 'ABCDE' ilike: 'abc%' "
> ^(wildcardString copyReplaceAll: '%' with: '*') asLowercase match:
> self asLowercase.
>
> I think this should take care of the problem.
>
> --
> Panu
>
> _______________________________________________
> SqueakDBX mailing list
> SqueakDBX at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeakdbx/attachments/20101119/4936501d/attachment.htm
More information about the SqueakDBX
mailing list