You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/08/30 08:54:38 UTC
[GitHub] [incubator-shardingsphere] lianqiuye opened a new issue #2956:
Sharding-JDBC can not convert LONGTEXT data in MySql to java.sql.Clob
lianqiuye opened a new issue #2956: Sharding-JDBC can not convert LONGTEXT data in MySql to java.sql.Clob
URL: https://github.com/apache/incubator-shardingsphere/issues/2956
Sharding-JDBC Version: 4.0.0-RC2
org.apache.shardingsphere.core.execute.sql.execute.result.QueryResultUtil convert column data to crossponding java Object by ResultSetMetaData, but the target data type may be a compatible java type.
Suggestion:
Mysql driver restore LONGTEXT as String as default, but if caller ask for java.sql.Clob type, the driver will convert to clob silently. The QueryResultUtil should consider the target type and ask the driver to convert to the target type.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services