db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1181734 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java
Date Tue, 11 Oct 2011 11:58:59 GMT
Author: kahatlen
Date: Tue Oct 11 11:58:58 2011
New Revision: 1181734

URL: http://svn.apache.org/viewvc?rev=1181734&view=rev
Log:
DERBY-5436: Use helper method to add warning in EmbedResultSet.movePosition()

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java?rev=1181734&r1=1181733&r2=1181734&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java Tue Oct
11 11:58:58 2011
@@ -474,10 +474,7 @@ public abstract class EmbedResultSet ext
          
 			SQLWarning w = theResults.getWarnings();
 			if (w != null) {
-				if (topWarning == null)
-					topWarning = w;
-				else
-					topWarning.setNextWarning(w);
+                addWarning(w);
 			}
 			
             boolean onRow = (currentRow = newRow) != null;			



Mime
View raw message