[jira] Created: (JDBI-14) ColonStatementLexer cannot handle JDBC's function escape syntax

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (JDBI-14) ColonStatementLexer cannot handle JDBC's function escape syntax

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ColonStatementLexer cannot handle JDBC's function escape syntax
---------------------------------------------------------------

                 Key: JDBI-14
                 URL: http://jira.codehaus.org/browse/JDBI-14
             Project: jDBI
          Issue Type: Bug
          Components: Core
            Reporter: Thomas Dudziak
            Assignee: Brian McCallister


See e.g. http://db.apache.org/derby/docs/10.4/ref/rrefjdbc88908.html for examples. Things like

SELECT {fn TIMESTAMPADD( SQL_TSI_MONTH, created_at, CURRENT_TIMESTAMP)} FROM sometable

will error with:

Caused by: line 1:63: unexpected char: '{'
        at org.skife.jdbi.rewriter.colon.ColonStatementLexer.nextToken(ColonStatementLexer.java:121)
        at org.skife.jdbi.v2.ColonPrefixNamedParamStatementRewriter.rewrite(ColonPrefixNamedParamStatementRewriter.java:79)
        ... 8 more



--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Resolved: (JDBI-14) ColonStatementLexer cannot handle JDBC's function escape syntax

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JDBI-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian McCallister resolved JDBI-14.
-----------------------------------

    Resolution: Fixed

Fixed for 2.2.3

> ColonStatementLexer cannot handle JDBC's function escape syntax
> ---------------------------------------------------------------
>
>                 Key: JDBI-14
>                 URL: http://jira.codehaus.org/browse/JDBI-14
>             Project: jDBI
>          Issue Type: Bug
>          Components: Core
>            Reporter: Thomas Dudziak
>            Assignee: Brian McCallister
>
> See e.g. http://db.apache.org/derby/docs/10.4/ref/rrefjdbc88908.html for examples. Things like
> SELECT {fn TIMESTAMPADD( SQL_TSI_MONTH, created_at, CURRENT_TIMESTAMP)} FROM sometable
> will error with:
> Caused by: line 1:63: unexpected char: '{'
> at org.skife.jdbi.rewriter.colon.ColonStatementLexer.nextToken(ColonStatementLexer.java:121)
> at org.skife.jdbi.v2.ColonPrefixNamedParamStatementRewriter.rewrite(ColonPrefixNamedParamStatementRewriter.java:79)
> ... 8 more

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email