-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with schema changes when trigger depends on a rewrite (#6706)
Dependencies on rewrites, policies, and triggers don't get explicitly tracked as references, but the things they depend on transitively through those do. The dummy expression for rewrites is not the correct type, so if a trigger and a rewrite are being reprocessed in _propagate_if_expr refs at the same time, and the trigger uses the rewrite, and is processed first, then it will error. Fix this by having the rewrite dummy expression have the right type. I've experimented with having rewrites and triggers explicitly tracked as dependencies, but it complicates some code and I don't think it actually fixes any real problems.
- Loading branch information
Showing
2 changed files
with
41 additions
and
7 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