blackbeam / rust-mysql-simple

Mysql client library implemented in rust.
Apache License 2.0
666 stars 145 forks source link

Support on `MYSQL_TYPE_TEXT` #336

Open wangxiaoying opened 2 years ago

wangxiaoying commented 2 years ago

Currently if the column is specified as TEXT type, the column_type() result we get is MYSQL_TYPE_BLOB, which is the same with BLOB type, and thus cannot differentiate binary and non-binary strings.

Should we add new types like MYSQL_TYPE_TEXT, or is there a way workaround?