canal 特殊语句 adapter同步问题

yx2lnoni  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(168)

environment

  • canal version 1.1.7-SNAPSHOT-alpha3
  • mysql version 8.0.28

Issue Description

mysql存储过程中的这种语句
mysql> CREATE TABLE test (a INT NOT NULL AUTO_INCREMENT,
-> PRIMARY KEY (a), KEY(b))
-> ENGINE=InnoDB SELECT b,c FROM test2;

在adapter日志中正常解析一个DDL之后报如下错误
java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: 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 'START TRANSACTION' at line 73

分开该语句create + insert就不会

50pmv0ei

50pmv0ei1#

DDL语句和DML语句没有中间分号分隔?

rwqw0loc

rwqw0loc2#

DDL语句和DML语句没有中间分号分隔?
https://dev.mysql.com/doc/refman/8.0/en/create-table-select.html
如下这种语句

相关问题