cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r635303 - /cayenne/sandbox/DBPatch/src/org/apache/cayenne/tools/DBPatchRunner.java
Date Sun, 09 Mar 2008 17:25:45 GMT
Author: aadamchik
Date: Sun Mar  9 10:25:44 2008
New Revision: 635303

URL: http://svn.apache.org/viewvc?rev=635303&view=rev
Log:
fixed transaction handling

Modified:
    cayenne/sandbox/DBPatch/src/org/apache/cayenne/tools/DBPatchRunner.java

Modified: cayenne/sandbox/DBPatch/src/org/apache/cayenne/tools/DBPatchRunner.java
URL: http://svn.apache.org/viewvc/cayenne/sandbox/DBPatch/src/org/apache/cayenne/tools/DBPatchRunner.java?rev=635303&r1=635302&r2=635303&view=diff
==============================================================================
--- cayenne/sandbox/DBPatch/src/org/apache/cayenne/tools/DBPatchRunner.java (original)
+++ cayenne/sandbox/DBPatch/src/org/apache/cayenne/tools/DBPatchRunner.java Sun Mar  9 10:25:44
2008
@@ -199,6 +199,9 @@
 						.currentTimeMillis()));
 				patchSt.setString(5, PATCH_UTILITY_VERSION);
 				patchSt.executeUpdate();
+				
+				// commit each patch record separately...
+				connection.commit();
 			}
 		} finally {
 			patchSt.close();



Mime
View raw message