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:49:10 UTC

svn commit: r1000505 - /pivot/branches/1.5.x/core/src/org/apache/pivot/sql/ResultList.java

Author: gbrown
Date: Thu Sep 23 15:49:10 2010
New Revision: 1000505

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

Modified:
    pivot/branches/1.5.x/core/src/org/apache/pivot/sql/ResultList.java

Modified: pivot/branches/1.5.x/core/src/org/apache/pivot/sql/ResultList.java
URL: http://svn.apache.org/viewvc/pivot/branches/1.5.x/core/src/org/apache/pivot/sql/ResultList.java?rev=1000505&r1=1000504&r2=1000505&view=diff
==============================================================================
--- pivot/branches/1.5.x/core/src/org/apache/pivot/sql/ResultList.java (original)
+++ pivot/branches/1.5.x/core/src/org/apache/pivot/sql/ResultList.java Thu Sep 23 15:49:10 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);