Menu

#2042 AccessSqlParser is not parsing well ON keyword

Core
closed-fixed
None
9
2009-09-04
2009-08-19
Teo Sarca
No

Following query is generating OutOfMemoryException:

SELECT 1
FROM M_Product p
INNER JOIN M_Product_Category pc on (pc.M_Product_Category_ID=p.M_Product_Category_ID)
LEFT OUTER JOIN M_Product_PO mpo ON (mpo.M_Product_ID=p.M_Product_ID)

(please note de lower case "on")

Best regards,
Teo Sarca - www.arhipac.ro

Discussion

  • Teo Sarca

    Teo Sarca - 2009-08-19
    • status: open --> pending-fixed
     
  • Carlos Ruiz

    Carlos Ruiz - 2009-08-19

    Thanks Teo for fixing this.

    One of the "practices" imposed by Compiere I don't like is the need of writing sql keywords uppercase, if you look the rest of AccessSQLParser it's assuming lots of keywords to be uppercase, and parser can fail if you write "select" or "from" (and I can see lots of the new code with lowercase sql)

    I'm wondering if a permanent solution can be simply to put all the sql sentence uppercase for parser, wdyt?

    Regards,

    Carlos Ruiz

     
  • Teo Sarca

    Teo Sarca - 2009-08-20
    • status: pending-fixed --> open-fixed
     
  • Teo Sarca

    Teo Sarca - 2009-08-20

    Hi Carlos,

    I think will solve this issue efficient.
    The only downside will be with case sensitive table names and/or case sensitive databases, but i think is not our case ;)

    WDYT?

    Best regards,
    Teo Sarca, www.arhipac.ro

     
  • Teo Sarca

    Teo Sarca - 2009-08-20
    • status: open-fixed --> pending-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.