List:Commits« Previous MessageNext Message »
From:mmatthews Date:June 27 2006 5:14pm
Subject:Connector/J commit: r5441 - branches/branch_5_0/connector-j/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_5_0/connector-j/src/com/mysql/jdbc/PreparedStatement.java
Log:
A little bit more checking for connections being closed out from underneath us.

Modified: branches/branch_5_0/connector-j/src/com/mysql/jdbc/PreparedStatement.java
===================================================================
--- branches/branch_5_0/connector-j/src/com/mysql/jdbc/PreparedStatement.java	2006-06-27 17:00:53 UTC (rev 5440)
+++ branches/branch_5_0/connector-j/src/com/mysql/jdbc/PreparedStatement.java	2006-06-27 17:14:24 UTC (rev 5441)
@@ -1019,8 +1019,13 @@
 	 *             if an error occurs
 	 */
 	protected int[] executeBatchSerially() throws SQLException {
+		
 		Connection locallyScopedConn = this.connection;
 		
+		if (locallyScopedConn == null) {
+			checkClosed();
+		}
+
 		int[] updateCounts = null;
 
 		if (this.batchedArgs != null) {

Thread
Connector/J commit: r5441 - branches/branch_5_0/connector-j/src/com/mysql/jdbcmmatthews27 Jun