cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r584707 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/SQLTemplateAction.java
Date Mon, 15 Oct 2007 08:27:55 GMT
Author: aadamchik
Date: Mon Oct 15 01:27:55 2007
New Revision: 584707

URL: http://svn.apache.org/viewvc?rev=584707&view=rev
Log:
preserving early loop break for iterated results

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/SQLTemplateAction.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/SQLTemplateAction.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/SQLTemplateAction.java?rev=584707&r1=584706&r2=584707&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/SQLTemplateAction.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/SQLTemplateAction.java
Mon Oct 15 01:27:55 2007
@@ -161,6 +161,12 @@
                                 resultSet.close();
                             }
                         }
+                        
+                        // ignore possible following update counts and bail early on
+                        // iterated results
+                        if (iteratedResult) {
+                            break;
+                        }
                     }
                 }
                 else {



Mime
View raw message