User: starksm
Date: 02/04/04 20:58:41
Modified: src/main/org/jboss/pool/jdbc/xa/wrapper Tag: Branch_2_4
XAClientConnection.java
Log:
Apply fix for bug #506549
Revision Changes Path
No revision
No revision
1.1.1.1.2.2 +7 -1
jbosspool/src/main/org/jboss/pool/jdbc/xa/wrapper/Attic/XAClientConnection.java
Index: XAClientConnection.java
===================================================================
RCS file:
/cvsroot/jboss/jbosspool/src/main/org/jboss/pool/jdbc/xa/wrapper/Attic/XAClientConnection.java,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.2
--- XAClientConnection.java 27 Dec 2001 21:10:40 -0000 1.1.1.1.2.1
+++ XAClientConnection.java 5 Apr 2002 04:58:41 -0000 1.1.1.1.2.2
@@ -372,7 +372,13 @@
}
public PreparedStatement prepareStatement(String sql, int resultSetType, int
resultSetConcurrency) throws SQLException {
- return prepareStatement(sql);
+ if(con == null) throw new SQLException(CLOSED);
+ try {
+ return con.prepareStatement(sql, resultSetType, resultSetConcurrency);
+ } catch(SQLException e) {
+ setError(e);
+ throw e;
+ }
}
public CallableStatement prepareCall(String sql, int resultSetType, int
resultSetConcurrency) throws SQLException {
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development