-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
prepare方式执行blob类型的insert,[]byte部分字节被编码成�字符存储了 #3
Comments
存入的[]byte 是97个字节 |
我测试过,直接存入mysql是没有问题的 ,存进去的仍然是97字节。 通过mycat方式存储就变成了125字节。 |
@linzhiqiang0514 麻烦看下我遇到的问题,新版本不是说支持blob类型的吗 |
@magicdoom @micmiu @stonelion @apachemycat 有人可以帮我看一下这个问题吗? |
在客户端的 jdbc url 上添加 useServerPrepStmts=true,开启服务端 prepare。 |
@stonelion 我用的是golang, 我也试着添加了 useServerPrepStmts=true连接参数,还是一样的效果。
|
useServerPrepStmts 这个参数是 mysql connectJ 使用的。 go 下的客户端应该有自己的参数。可以找看看客户端具体的配置在哪里。 |
@stonelion golang没有发现有这个参数,不填这个参数也是可以使用preparestmt功能的, 直接连接mysql也能正常写入byte数组。 但是连接mycat虽然能写入byte数组,但数据被编码成?号了,不是我存入的数据了。 |
我使用Ruby,开启了客户端的预编译之后,仍然无法绕过这个bug。 |
@stonelion 帮我看下这个问题,急!#20 (comment) |
Hibernate4,mysql数据库类型 blob,java类型 byte[],单开 useServerPrepStmts=true 无法正确处理数据。 |
mycat1.6版本。prepare方式执行blob类型的insert,[]byte的部分字节被编码成�字符存储了
The text was updated successfully, but these errors were encountered: