[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.4.1


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.

Reply via email to