mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r806545 - /lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
Date Fri, 21 Aug 2009 13:29:47 GMT
Author: srowen
Date: Fri Aug 21 13:29:47 2009
New Revision: 806545

URL: http://svn.apache.org/viewvc?rev=806545&view=rev
Log:
Fix a small-but-vital bug in the new JDBC data model implementation. Selecting user IDs in
place of item IDs in one case. Oops.

Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java?rev=806545&r1=806544&r2=806545&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
(original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
Fri Aug 21 13:29:47 2009
@@ -381,7 +381,7 @@
 
       FastIDSet result = new FastIDSet();
       while (rs.next()) {
-        result.add(rs.getLong(1));
+        result.add(rs.getLong(2));
       }
 
       if (result.isEmpty()) {



Mime
View raw message