1、bug描述
mycat配置成读写分离,数据源连接mycat,执行批量操作时报错,虽然报语法错,我仔细检查了并且也在sql直接执行都没问题:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE sale_info
set account = 'ST-AU',
1、bug描述 mycat配置成读写分离,数据源连接mycat,执行批量操作时报错,虽然报语法错,我仔细检查了并且也在sql直接执行都没问题: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE sale_info set account = 'ST-AU',
注意:我数据源不配mycat,直接连数据库,就不会报错 2、版本号 v 1.6.7.6-release-20210908145008 3、操作步骤 1.连接数据源: type: com.alibaba.druid.pool.DruidDataSource password: *** username: kaidu_mt url: jdbc:mysql://*:8066/mt_kaidu?useUnicode=true&characterEncoding=UTF8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2B8 driver-class-name: com.mysql.cj.jdbc.Driver 2.调用批量更新
批量更新调用,通过mycat中间件,就会报错~ 直接jdbc连数据库就不会报