geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hogst...@apache.org
Subject svn commit: r465324 - /geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
Date Wed, 18 Oct 2006 18:36:39 GMT
Author: hogstrom
Date: Wed Oct 18 11:36:36 2006
New Revision: 465324

URL: http://svn.apache.org/viewvc?view=rev&rev=465324
Log:
Applied patch to ensure that statements are closed in JDBC mode

Modified:
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java?view=diff&rev=465324&r1=465323&r2=465324
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
Wed Oct 18 11:36:36 2006
@@ -1576,11 +1576,12 @@
 	    	
 			stmt = getStatement(conn, loginSQL);
 			stmt.setTimestamp(1, new Timestamp(System.currentTimeMillis()));
-            stmt.setString(2, userID);
+                        stmt.setString(2, userID);
 
 			int rows = stmt.executeUpdate();
 			//?assert rows==1?
-			
+		        stmt.close();
+	
 			stmt = getStatement(conn, getAccountForUserSQL);
 			stmt.setString(1, userID);
 			rs = stmt.executeQuery();



Mime
View raw message