Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharding-JDBC can not convert LONGTEXT data in MySql to java.sql.Clob #2956

Closed
lianqiuye opened this issue Aug 30, 2019 · 2 comments
Closed

Comments

@lianqiuye
Copy link

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.

@sunbufu
Copy link
Contributor

sunbufu commented Sep 5, 2019

Thank you for your suggestion. Can you give me more details? Some configuration, code and exception will help me.

@terrymanu
Copy link
Member

Closed for no response any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants