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 18822] New: - SQL Task fails to load some packages in Oracle
Date Tue, 08 Apr 2003 16:18:21 GMT
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: dev@ant.apache.org
        ReportedBy: riznob@hotmail.com


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.

Mime
View raw message