DBZ-6194 Use CHARSET for alterByConvertCharset clause

This commit is contained in:
ani-sha 2023-03-14 12:53:04 +05:30 committed by Jiri Pechanec
parent 4138a9898a
commit d34891e1e9
2 changed files with 2 additions and 1 deletions

View File

@ -715,7 +715,7 @@ alterSpecification
| ENABLE KEYS #alterByEnableKeys
| RENAME renameFormat=(TO | AS)? (uid | fullId) #alterByRename
| ORDER BY uidList #alterByOrder
| CONVERT TO CHARACTER SET charsetName
| CONVERT TO (CHARSET | CHARACTER SET) charsetName
(COLLATE collationName)? #alterByConvertCharset
| DEFAULT? CHARACTER SET '=' charsetName
(COLLATE '=' collationName)? #alterByDefaultCharset

View File

@ -44,6 +44,7 @@ alter table add_test drop foreign key if exists fk;
alter table add_test drop constraint if exists cons;
alter table add_test wait 100 add column col1 int not null;
alter table default.task add column xxxx varchar(200) comment 'cdc test';
ALTER TABLE `hcore`.comments COLLATE='utf8mb4_general_ci', CONVERT TO CHARSET UTF8MB4;
#end
#begin
-- Alter database