jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphael Jean (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-436) InvalidQueryException thrown for a SQL query using WHERE CONTAINS(., 'someword')
Date Thu, 18 May 2006 09:19:05 GMT
InvalidQueryException thrown for a SQL query using WHERE CONTAINS(., 'someword')
--------------------------------------------------------------------------------

         Key: JCR-436
         URL: http://issues.apache.org/jira/browse/JCR-436
     Project: Jackrabbit
        Type: Bug

  Components: query  
    Versions: 1.0    
    Reporter: Raphael Jean


The following SQL query:
SELECT * FROM es:document WHERE CONTAINS(., 'software')
throws an InvalidQueryException exception.

javax.jcr.query.InvalidQueryException: Encountered "." at line 1, column 42.
Was expecting one of:
    "BY" ...
    "IN" ...
    "OR" ...
    "IS" ...
    "AND" ...
    "LIKE" ...
    "NULL" ...
    "FROM" ...
    "ORDER" ...
    "WHERE" ...
    "SELECT" ...
    "BETWEEN" ...
    "*" ...
    <REGULAR_IDENTIFIER> ...
    <DELIMITED_IDENTIFIER> ...
    
This syntax seems correct according to the latest jcr spec (1.0.1).
Using an asterisk (*) instead of a dot (.) as the first parameter of CONTAINS() works fine.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message