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就不会
2条答案
按热度按时间50pmv0ei1#
DDL语句和DML语句没有中间分号分隔?
rwqw0loc2#
DDL语句和DML语句没有中间分号分隔?
https://dev.mysql.com/doc/refman/8.0/en/create-table-select.html
如下这种语句