You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Timur Evdokimov (JIRA)" <ji...@apache.org> on 2004/12/23 22:51:03 UTC

[jira] Created: (JCR-37) select query fails on 'like xxx322' statement

select query fails on 'like xxx322' statement
---------------------------------------------

         Key: JCR-37
         URL: http://nagoya.apache.org/jira/browse/JCR-37
     Project: Jackrabbit
        Type: Bug
  Components: API  
    Reporter: Timur Evdokimov
    Priority: Minor


In class org.apache.jackrabbit.core.search.lucene.WildcardTermEnum, there's a condition around line 77 like

...
if (Character.isLetter(likePattern.charAt(i))) {
...

which fails on query like
SELECT * FROM my:type LOCATION /news// WHERE my:text LIKE "asd2"

it should be changed to 

if (Character.isLetter(likePattern.charAt(i)) || Character.isDigit(likePattern.charAt(i))) {



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (JCR-37) select query fails on 'like xxx322' statement

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-37?page=history ]
     
Marcel Reutegger closed JCR-37:
-------------------------------


> select query fails on 'like xxx322' statement
> ---------------------------------------------
>
>          Key: JCR-37
>          URL: http://issues.apache.org/jira/browse/JCR-37
>      Project: Jackrabbit
>         Type: Bug
>   Components: API
>     Reporter: Timur Evdokimov
>     Priority: Minor

>
> In class org.apache.jackrabbit.core.search.lucene.WildcardTermEnum, there's a condition around line 77 like
> ...
> if (Character.isLetter(likePattern.charAt(i))) {
> ...
> which fails on query like
> SELECT * FROM my:type LOCATION /news// WHERE my:text LIKE "asd2"
> it should be changed to 
> if (Character.isLetter(likePattern.charAt(i)) || Character.isDigit(likePattern.charAt(i))) {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (JCR-37) select query fails on 'like xxx322' statement

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-37?page=history ]
     
Marcel Reutegger resolved JCR-37:
---------------------------------

    Resolution: Fixed

Thanks Timur for reporting this issue. It has already been fixed with revision 123135. About the same time you were reporting this issue ;)

> select query fails on 'like xxx322' statement
> ---------------------------------------------
>
>          Key: JCR-37
>          URL: http://issues.apache.org/jira/browse/JCR-37
>      Project: Jackrabbit
>         Type: Bug
>   Components: API
>     Reporter: Timur Evdokimov
>     Priority: Minor

>
> In class org.apache.jackrabbit.core.search.lucene.WildcardTermEnum, there's a condition around line 77 like
> ...
> if (Character.isLetter(likePattern.charAt(i))) {
> ...
> which fails on query like
> SELECT * FROM my:type LOCATION /news// WHERE my:text LIKE "asd2"
> it should be changed to 
> if (Character.isLetter(likePattern.charAt(i)) || Character.isDigit(likePattern.charAt(i))) {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira