forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BABEL: Support duplicate trigger name in different databases (yugabyt…
…e#50) Previously, duplicate trigger name was not allowed in different databases. But in tsql, different databases can have the same trigger name. Here, we check if a trigger with the same name is in current database. If not, then the trigger can be created. And during drop trigger, we modify the pre check trigger in parsing stage to not throw error, and find the correct trigger to drop with trigger and database name. Task:BABEL-3117 Signed-off-by: Zhenye Li <zhenye@amazon.com> (cherry picked from commit ab122807cfde7a4b33f2ea4fa0017075efbd9487)
- Loading branch information
1 parent
f8ca83c
commit e3f9692
Showing
3 changed files
with
15 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters