SOLR-4978: Time is stripped from datetime column when imported into Solr date field if convertType=true

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1500666 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2013-07-08 11:30:40 +00:00
parent e98616b8f1
commit 6e638c8460
2 changed files with 4 additions and 1 deletions

View File

@ -260,6 +260,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
----------------------

View File

@ -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));