[
https://issues.apache.org/jira/browse/JCR-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Reutegger resolved JCR-1494.
-----------------------------------
Resolution: Fixed
Fix Version/s: (was: 1.4.1)
1.5
Committed in revision: 640744
Thank you for providing the patch.
> [PATCH] XPathQueryBuilder reports misleading column numbers for faulty queries
> ------------------------------------------------------------------------------
>
> Key: JCR-1494
> URL: https://issues.apache.org/jira/browse/JCR-1494
> Project: Jackrabbit
> Issue Type: Improvement
> Components: jackrabbit-spi-commons
> Affects Versions: 1.4
> Reporter: Dave Brosius
> Fix For: 1.5
>
> Attachments: better_query_error_msgs.patch
>
>
> XPathQueryBuilder returns an error string with the column offset where a
> parsing error occurred. Unfortunately this value is difficult to correlate to
> the users query string, as XPathQueryBuilder embellishes the query by doing
> statement = "for $v in " + statement + " return $v";
> This patch appends the modified statement to the query message so that the
> user can get the real position of the error.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.