minghu-zhang commented on issue #3647: The data decrypt failure when I use 
mysql's blob field
URL: 
https://github.com/apache/incubator-shardingsphere/issues/3647#issuecomment-561079396
 
 
   I have annother problem when use mybatis, mybatis need driver support jdbc's 
api  4.2, but sharding's EncryptResultSet doesn't support . the text field is 
handle by mybatis ClobTypeHandler, sharding‘s handler result is String, the 
following code :
   
   EncryptResultSet.java:339
   
      @Override
       public Clob getClob(final String columnLabel) throws SQLException {
           return (Clob) resultSet.getValue(getActualColumnLabel(columnLabel), 
Clob.class);  
          //
       }
   
   StreamQueryResult.java:74
   
       @Override
       public Object getValue(final String columnLabel, final Class<?> type) 
throws SQLException {
           // This type value is not used 
           return decrypt(columnLabel, QueryResultUtil.getValue(resultSet, 
queryResultMetaData.getColumnIndex(columnLabel)));
       }
   
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to