You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/09/23 17:54:35 UTC

svn commit: r1000508 - /pivot/trunk/core/src/org/apache/pivot/sql/ResultList.java

Author: gbrown
Date: Thu Sep 23 15:54:35 2010
New Revision: 1000508

URL: http://svn.apache.org/viewvc?rev=1000508&view=rev
Log:
Fix bug in ResultList.

Modified:
    pivot/trunk/core/src/org/apache/pivot/sql/ResultList.java

Modified: pivot/trunk/core/src/org/apache/pivot/sql/ResultList.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/src/org/apache/pivot/sql/ResultList.java?rev=1000508&r1=1000507&r2=1000508&view=diff
==============================================================================
--- pivot/trunk/core/src/org/apache/pivot/sql/ResultList.java (original)
+++ pivot/trunk/core/src/org/apache/pivot/sql/ResultList.java Thu Sep 23 15:54:35 2010
@@ -163,11 +163,8 @@ public class ResultList implements List<
                    }
 
                    if (value != null || includeNullValues) {
-                       String key = (field.key == null) ? field.columnName : field.key;
-                       item.put(key, value);
+                       item.put((field.key == null) ? field.columnName : field.key, value);
                    }
-
-                   item.put((field.key == null) ? field.columnName : field.key, value);
                }
            } catch (SQLException exception) {
                throw new RuntimeException(exception);