DBZ-8066 Support RENAME TABLE IF EXISTS

This commit is contained in:
Chris Cranford 2024-07-17 13:40:25 -04:00 committed by Chris Cranford
parent 1ffaf6b0b5
commit f64a217f26
2 changed files with 2 additions and 1 deletions

View File

@ -832,7 +832,7 @@ dropSequence // sequence is MariaDB-specific only
// Other DDL statements
renameTable
: RENAME TABLE renameTableClause (',' renameTableClause)*
: RENAME TABLE ifExists? renameTableClause (',' renameTableClause)*
;
renameTableClause

View File

@ -188,6 +188,7 @@ RENAME TABLE old_table TO tmp_table, new_table TO old_table, tmp_table TO new_ta
RENAME TABLE table_b TO table_a;
RENAME TABLE current_db.tbl_name TO other_db.tbl_name;
rename table debezium_all_types_old to debezium_all_types, test_json_object_old wait 10 to test_json_object;
RENAME TABLE IF EXISTS EMPLOYEE TO employee;
#end
#begin
-- Truncate table