If an execption is thrown when establishing the jdbc connection the conn
object is not initialised and so should not be rolledback

Index: src/main/org/apache/tools/ant/taskdefs/SQLExec.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.j
ava,v
retrieving revision 1.4
diff -r1.4 SQLExec.java
224c224
<                     conn.rollback();
---
>                     if(conn!=null)conn.rollback();
231c231
<                     conn.rollback();
---
>                     if(conn!=null)conn.rollback();

Reply via email to