[ http://issues.apache.org/jira/browse/JCR-436?page=all ]
Marcel Reutegger updated JCR-436:
---------------------------------
Version: 0.9
1.0.1
> 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, 1.0.1, 0.9
> Reporter: Raphael Jean
> Fix For: 1.1
>
> 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
|