Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: prevent DROP OWNED BY with synthetic privileges #86619

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

RichardJCai
Copy link
Contributor

@RichardJCai RichardJCai commented Aug 22, 2022

Release justification: disallowing certain case within new schema change, bug fix

Release note (sql change): DROP OWNED BY cannot be performed if the
user has synthetic privileges (in system.privileges)

Fixes #86499

@RichardJCai RichardJCai requested review from rafiss and a team August 22, 2022 21:25
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ajwerner
Copy link
Contributor

you need to implement the methods on TestState

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)

Release justification: disallowing certain case within new schema change, bug fix

Release note (sql change): DROP OWNED BY cannot be performed if the
user has synthetic privileges (in system.privileges)
@RichardJCai
Copy link
Contributor Author

Thanks for reviewing!
bors r=ajwerner

@craig
Copy link
Contributor

craig bot commented Aug 24, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants