ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Clash <spam.tr...@seznam.cz>
Subject Setting for removing newlines from SQL?
Date Sun, 10 Aug 2008 20:29:54 GMT

Hi,

I've came across an issue with the double-dash comments, as reported here:
https://issues.apache.org/jira/browse/IBATIS-203

In a short:

       <select>
                SELECT * FROM table
               -- Here is my comment.
                WHERE col = 5
        </select>

gets parsed into

        SELECT * FROM table -- Here is my comment. WHERE col = 5

Using other forms of comments reduces the code readability.

Is there any way to switch off removing the newlines in iBatis 2?

Thanks, Ondra 

-- 
View this message in context: http://www.nabble.com/Setting-for-removing-newlines-from-SQL--tp18916746p18916746.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Mime
View raw message