Repository navigation
fix(deparser): quote policy names in DROP POLICY and COMMENT ON POLICY - #373
Merged
Merged
Conversation
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Review complete. No issues found — approved ✅. Improves deparse fidelity for
Reviewed commit: 7e5320d |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Policy names that need quoting (e.g.
"Users can view own data") were emitted unquoted or in an invalid form, so the output no longer parsed:DropStmt(OBJECT_POLICY): name parts now go throughQuoteUtils.quoteIdentifierinstead of rawsval.CommentStmt(OBJECT_POLICY): handles the 3-partschema, table, policylist (previously only 2-part).Regression fixture
misc/policy-quoted-names.sqlfails before the fix and passes after; full deparser suite passes (749 tests).Link to Devin session: https://app.devin.ai/sessions/274a911e2422452599d0f1215f6d9f8f
Open in Devin Desktop: https://app.devin.ai/desktop/session/274a911e2422452599d0f1215f6d9f8f?variant=devin
Requested by: @pyramation