jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1494) [PATCH] XPathQueryBuilder reports misleading column numbers for faulty queries
Date Thu, 20 Mar 2008 22:35:26 GMT

     [ https://issues.apache.org/jira/browse/JCR-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dave Brosius updated JCR-1494:
------------------------------

    Attachment: better_query_error_msgs.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.4.1
>
>         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.


Mime
View raw message