ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28745] - SQL Task treatment of "--" is incorrect
Date Tue, 04 May 2004 09:59:24 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28745>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28745

SQL Task treatment of "--" is incorrect





------- Additional Comments From j_a_fernandez@yahoo.com  2004-05-04 09:59 -------
The problem with comments is more complex than people think.
SQLServer (at least older releases) does not allow new lines on the SQL 
statement passed by JDBC and it does not allow comments either.

So, for that DB you need to clean all this things up.
Oracle has a different set of behaviours. What was implemented was what was
considered safer for most of them.

I see that now people are asking for more DBspecific behaviour. Maybe we need 
to start thinking on a pluggable architecture for <sql/> that would allow
user access to the special features of a particular DB.

To start with, it could define the correct default values for the different 
settings that make the best way to send the SQL to the particular DB.

Does it make sense? The pluggins could autodetect based of the driver being 
used.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message