DBZ-7360 Resolve DDL Parser in Oracle Alter Table

DBZ-7360 Resolve DDL Parser in Oracle Alter Table

DBZ-7420 Modify alterSpecification Clause

DBZ-7420 Modify alterSpecification Clause
This commit is contained in:
Ilyas Ahsan 2024-01-26 17:44:10 +07:00 committed by Jiri Pechanec
parent bd0d858fc5
commit 4f05dfff50
2 changed files with 2 additions and 1 deletions

View File

@ -724,7 +724,7 @@ alterSpecification
| SET (VISIBLE | INVISIBLE)
| DROP DEFAULT) #alterByAlterColumnDefault
| ALTER INDEX uid (VISIBLE | INVISIBLE) #alterByAlterIndexVisibility
| DROP FOREIGN KEY ifExists? uid #alterByDropForeignKey // here ifExists is MariaDB-specific only
| DROP FOREIGN KEY ifExists? uid dottedId? #alterByDropForeignKey // here ifExists and dottedId is MariaDB-specific only
| DISABLE KEYS #alterByDisableKeys
| ENABLE KEYS #alterByEnableKeys
| RENAME renameFormat=(TO | AS)? (uid | fullId) #alterByRename

View File

@ -151,3 +151,4 @@ ALTER TABLE t1 ADD PARTITION IF NOT EXISTS (PARTITION p3 VALUES LESS THAN (2002)
-- Alter sequence
ALTER SEQUENCE IF EXISTS s2 start=100;
ALTER SEQUENCE s1 CACHE=1000 NOCYCLE RESTART WITH 1;
ALTER TABLE `TABLE_NAME` DROP FOREIGN KEY `TABLE_NAME`.`FK_COLUMN`;