empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r748325 - /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
Date Thu, 26 Feb 2009 21:41:00 GMT
Author: francisdb
Date: Thu Feb 26 21:41:00 2009
New Revision: 748325

URL: http://svn.apache.org/viewvc?rev=748325&view=rev
Log:
fixed potential nullpointer + prepared statement not being closed

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java?rev=748325&r1=748324&r2=748325&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
Thu Feb 26 21:41:00 2009
@@ -254,6 +254,7 @@
 				PreparedStatement pstmt = conn.prepareStatement(sqlCmd);
 				prepareStatement(pstmt, sqlParams);
 				count = pstmt.executeUpdate();
+				stmt = pstmt;
 			} else
 			{ // Execute a simple statement
 				stmt = conn.createStatement();



Mime
View raw message