DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18822>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18822

SQL Task fails to load some packages in Oracle

           Summary: SQL Task fails to load some packages in Oracle
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The SQL task fails to load some packages in Oracle because the escape 
substitution that is taking place on the statement prior to sending it to the 
database is corrupting the statement. The prepared statement needs to have the 
EscapeProcessing flag set to false.

statement.setEscapeProcessing(false);

See the java api for details...
http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Statement.html#setEscapeProcess
ing(boolean)

The patch to fix this is literally a one-liner.

Reply via email to