JackHuang0801 commented on issue #4348: sharding-jdbc-core v 4.0.0 not support 
mybatis 3.5.2 about LocalDateTime handle?
URL: 
https://github.com/apache/incubator-shardingsphere/issues/4348#issuecomment-587331958
 
 
   I check the source code LocalDateTimeTypeHandler.java in mybatis 3.5.2
   `    public LocalDateTime getNullableResult(ResultSet rs, String columnName) 
throws SQLException {
           return (LocalDateTime)rs.getObject(columnName, LocalDateTime.class);
       }`
   
   And debug this part, it will call 
org.apache.shardingsphere.shardingjdbc.jdbc.unsupported
   AbstractUnsupportedOperationResultSet.java
   `    public final <T> T getObject(String columnLabel, Class<T> type) throws 
SQLException {
           throw new SQLFeatureNotSupportedException("getObject with type");
       }`
   
   I also use mybatis 3.5.0 and it is ok, no exception.  Because 3.5.0 just 
return timestamp not LocalDateTime, and 3.5.1 to upgrade the handle 
LocalDateTime, change to use getObject() method.
   So, it is sharding-jdbc 4.0.0 may be not compatible for mybatis 3.5.x?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to