Closed nanne007 closed 6 years ago
Thanks for your feedback! PTAL @XuHuaiyu
After look through myql jdbc connector, I found that it caused by JOOQ using an interface which mysql connector has a flawed implementation.
https://github.com/mysql/mysql-connector-j/blob/9cc87a48e75c2d2e87c1a293b2862ce651cb256e/src/com/mysql/jdbc/ResultSetMetaData.java#L335
It use TEXT
for non-binary blob, but not *TEXT
for other non-binary blob types.
Maybe JOOQ should change to another interface, or maybe fix it in mysql connector. Whatever, it's not related to TiDB.
Please answer these questions before submitting your issue. Thanks!
JDBC(version: 5.1.46) returns byte array(instead of string) for
mediumtext
type column in TiDB. But In MySQL, it returns string, which is natural.I think the same behavior is also applied to
tinytext
andlongtext
, which may have big impacts on existed projects.What did you expect to see?
What did you see instead?
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?git commit hash:
daa866cdd48e4c0f0d1969bc9238e727a87c6813