mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
add sql parser testcase
This commit is contained in:
12
parse/src/test/resources/ddl/ddl_create_if_not_exist.sql
Normal file
12
parse/src/test/resources/ddl/ddl_create_if_not_exist.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE `table_x1` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`key1` longtext NOT NULL COMMENT 'key1',
|
||||
`value1` longtext NOT NULL COMMENT 'value1',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `table_x1` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`key1` longtext NOT NULL COMMENT 'key1',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user