You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2013/07/08 13:31:45 UTC
svn commit: r1500668 - in /lucene/dev/branches/branch_4x: ./ solr/
solr/CHANGES.txt solr/contrib/
solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/JdbcDataSource.java
Author: shalin
Date: Mon Jul 8 11:31:45 2013
New Revision: 1500668
URL: http://svn.apache.org/r1500668
Log:
SOLR-4978: Time is stripped from datetime column when imported into Solr date field if convertType=true
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/solr/ (props changed)
lucene/dev/branches/branch_4x/solr/CHANGES.txt (contents, props changed)
lucene/dev/branches/branch_4x/solr/contrib/ (props changed)
lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/JdbcDataSource.java
Modified: lucene/dev/branches/branch_4x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txt?rev=1500668&r1=1500667&r2=1500668&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/solr/CHANGES.txt Mon Jul 8 11:31:45 2013
@@ -237,6 +237,9 @@ Bug Fixes
* SOLR-4788: Multiple Entities DIH delta import: dataimporter.[entityName].last_index_time
is empty. (chakming wong, James Dyer via shalin)
+* SOLR-4978: Time is stripped from datetime column when imported into Solr date field
+ if convertType=true. (Bill Au, shalin)
+
Optimizations
----------------------
Modified: lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/JdbcDataSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/JdbcDataSource.java?rev=1500668&r1=1500667&r2=1500668&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/JdbcDataSource.java (original)
+++ lucene/dev/branches/branch_4x/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/JdbcDataSource.java Mon Jul 8 11:31:45 2013
@@ -333,7 +333,7 @@ public class JdbcDataSource extends
result.put(colName, resultSet.getDouble(colName));
break;
case Types.DATE:
- result.put(colName, resultSet.getDate(colName));
+ result.put(colName, resultSet.getTimestamp(colName));
break;
case Types.BOOLEAN:
result.put(colName, resultSet.getBoolean(colName));