Mycat-Server icon indicating copy to clipboard operation
Mycat-Server copied to clipboard

按月分表,插入数据报错

Open project-ccy opened this issue 4 years ago • 2 comments

1、bug描述 简单清晰描述下bug现象. 插入的数据转换成了0x的十六进制数据,导致插入不进去 2、版本号(非常重要) v 1.6.7.6 GitVersion 722d3b662dbd6cb848058ce0ab76b6faa2e38396

3、相关表的配置信息 schema.xml (需包含表的配置信息,mysql的连接驱动是JDBC还是native方式) image

rule.xml (涉及到的路由函数) image image server.xml(可选) image

4、操作步骤 错误日志 image image image

换成其他分片规则比如mod-long是正常的,怀疑是我分片设置错了。 day字段修改成date varchar datetime 格式都试过

5、期望结果 A clear and concise description of what you expected to happen.

6、实际结果 A clear and concise description of what actually happened.

7、额外信息 Add any other context about the problem here.

project-ccy avatar Nov 09 '21 10:11 project-ccy

可能客户端使用了服务器预处理导致的,客户端关闭服务器预处理看看是不是这个问题,另外可以试用1674看看有没有这个问题,最近的版本改动了预处理这块,可能导致这个问题

junwen12221 avatar Nov 09 '21 16:11 junwen12221

http://dl.mycat.org.cn/1.6.7.6/20211111140317/Mycat-server-1.6.7.6-release-20211111140317-linux.tar.gz

junwen12221 avatar Nov 11 '21 06:11 junwen12221