Hi Panu. The thing is that like is not case sensitive neither.<br><br>Look:<br><br>'abcde' like: 'abc%' true<br>'aBcde' like: 'abc%' true<br>'abcde' like: 'aBc%' true<br><br>
'abcde' ilike: 'abc%' true<br>'aBcde' ilike: 'abc%' true<br>'abcde' ilike: 'aBc%' true<br><br>Can you provide testcases to show the problem? or the differences between like and ilike<br>
<br>thanks<br><br>mariano<br><br><div class="gmail_quote">On Fri, Nov 19, 2010 at 8:26 AM, Panu Suominen <span dir="ltr"><<a href="mailto:panu.suominen@iki.fi" target="_blank">panu.suominen@iki.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I created following method to the String class. Change set is<br>
attached. Squeak source was down so I was not able to make a commit<br>
with monticello.<br>
<br>
String>>ilike: wildcardString<br>
" 'ABCDE' ilike: 'abc%' "<br>
^(wildcardString copyReplaceAll: '%' with: '*') asLowercase match:<br>
self asLowercase.<br>
<br>
I think this should take care of the problem.<br>
<br>
--<br>
<font color="#888888">Panu<br>
</font><br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org" target="_blank">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div><br>