You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Ognjen Blagojevic (JIRA)" <ji...@apache.org> on 2007/06/13 13:34:25 UTC

[jira] Created: (OPENJPA-259) Ability to parse EJB QL multiline queries in orm.xml

Ability to parse EJB QL multiline queries in orm.xml
----------------------------------------------------

                 Key: OPENJPA-259
                 URL: https://issues.apache.org/jira/browse/OPENJPA-259
             Project: OpenJPA
          Issue Type: Improvement
          Components: kernel
    Affects Versions: 0.9.7
         Environment: Windows XP
            Reporter: Ognjen Blagojevic


Multiline queries in orm.xml like this one

<named-query name="Test.findAll">
   <query>
       select o
         from Test o
   </query>
</named-query> 

Fail to execute with exception:

Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10.  Encountered: "\n" (10), after : ""

Please, add the possibility to the parser to handle multiline queries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-259) Ability to parse EJB QL multiline queries in orm.xml

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506305 ] 

Patrick Linskey commented on OPENJPA-259:
-----------------------------------------

Sure enough. I somehow never noticed that the escape characters didn't correspond to their ASCII equivalents.

> Ability to parse EJB QL multiline queries in orm.xml
> ----------------------------------------------------
>
>                 Key: OPENJPA-259
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-259
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 0.9.7
>         Environment: Windows XP
>            Reporter: Ognjen Blagojevic
>             Fix For: 1.0.0
>
>         Attachments: OPENJPA-259.patch
>
>
> Multiline queries in orm.xml like this one
> <named-query name="Test.findAll">
>    <query>
>        select o
>          from Test o
>    </query>
> </named-query> 
> Fail to execute with exception:
> Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10.  Encountered: "\n" (10), after : ""
> Please, add the possibility to the parser to handle multiline queries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-259) Ability to parse EJB QL multiline queries in orm.xml

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505474 ] 

Craig Russell commented on OPENJPA-259:
---------------------------------------

Thanks for committing the patch and adding a test case.

The \f" was not accidental. It's white space as defined in the Java Language manual, which calls it "form feed". I added all the white space from the manual.


> Ability to parse EJB QL multiline queries in orm.xml
> ----------------------------------------------------
>
>                 Key: OPENJPA-259
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-259
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 0.9.7
>         Environment: Windows XP
>            Reporter: Ognjen Blagojevic
>             Fix For: 1.0.0
>
>         Attachments: OPENJPA-259.patch
>
>
> Multiline queries in orm.xml like this one
> <named-query name="Test.findAll">
>    <query>
>        select o
>          from Test o
>    </query>
> </named-query> 
> Fail to execute with exception:
> Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10.  Encountered: "\n" (10), after : ""
> Please, add the possibility to the parser to handle multiline queries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-259) Ability to parse EJB QL multiline queries in orm.xml

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Linskey resolved OPENJPA-259.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0

> Ability to parse EJB QL multiline queries in orm.xml
> ----------------------------------------------------
>
>                 Key: OPENJPA-259
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-259
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 0.9.7
>         Environment: Windows XP
>            Reporter: Ognjen Blagojevic
>             Fix For: 1.0.0
>
>         Attachments: OPENJPA-259.patch
>
>
> Multiline queries in orm.xml like this one
> <named-query name="Test.findAll">
>    <query>
>        select o
>          from Test o
>    </query>
> </named-query> 
> Fail to execute with exception:
> Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10.  Encountered: "\n" (10), after : ""
> Please, add the possibility to the parser to handle multiline queries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-259) Ability to parse EJB QL multiline queries in orm.xml

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Russell updated OPENJPA-259:
----------------------------------

    Attachment: OPENJPA-259.patch

This patch might do the trick. Anyone want to give it a try?

> Ability to parse EJB QL multiline queries in orm.xml
> ----------------------------------------------------
>
>                 Key: OPENJPA-259
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-259
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 0.9.7
>         Environment: Windows XP
>            Reporter: Ognjen Blagojevic
>         Attachments: OPENJPA-259.patch
>
>
> Multiline queries in orm.xml like this one
> <named-query name="Test.findAll">
>    <query>
>        select o
>          from Test o
>    </query>
> </named-query> 
> Fail to execute with exception:
> Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10.  Encountered: "\n" (10), after : ""
> Please, add the possibility to the parser to handle multiline queries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-259) Ability to parse EJB QL multiline queries in orm.xml

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505578 ] 

Craig Russell commented on OPENJPA-259:
---------------------------------------

Well, \n isn't ascii 14 and \t isn't ascii 20. They're just letters and don't translate literally into ascii.

> Ability to parse EJB QL multiline queries in orm.xml
> ----------------------------------------------------
>
>                 Key: OPENJPA-259
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-259
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 0.9.7
>         Environment: Windows XP
>            Reporter: Ognjen Blagojevic
>             Fix For: 1.0.0
>
>         Attachments: OPENJPA-259.patch
>
>
> Multiline queries in orm.xml like this one
> <named-query name="Test.findAll">
>    <query>
>        select o
>          from Test o
>    </query>
> </named-query> 
> Fail to execute with exception:
> Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10.  Encountered: "\n" (10), after : ""
> Please, add the possibility to the parser to handle multiline queries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-259) Ability to parse EJB QL multiline queries in orm.xml

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505525 ] 

Patrick Linskey commented on OPENJPA-259:
-----------------------------------------

> The \f" was not accidental. It's white space as defined in the 
> Java Language manual, which calls it "form feed". I added
> all the white space from the manual. 

Surely they meant \l (^L, or ASCII 12), not \f (^F, ASCII 6).

> Ability to parse EJB QL multiline queries in orm.xml
> ----------------------------------------------------
>
>                 Key: OPENJPA-259
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-259
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 0.9.7
>         Environment: Windows XP
>            Reporter: Ognjen Blagojevic
>             Fix For: 1.0.0
>
>         Attachments: OPENJPA-259.patch
>
>
> Multiline queries in orm.xml like this one
> <named-query name="Test.findAll">
>    <query>
>        select o
>          from Test o
>    </query>
> </named-query> 
> Fail to execute with exception:
> Error message: org.apache.openjpa.kernel.jpql.TokenMgrError: Lexical error at line 1, column 10.  Encountered: "\n" (10), after : ""
> Please, add the possibility to the parser to handle multiline queries.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.