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

release-21.1: sql: fix has_database_privilege to work cross-DB #65534

Merged
merged 1 commit into from
May 20, 2021

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented May 20, 2021

Backport 1/1 commits from #65513.

/cc @cockroachdb/release


fixes #65421

This is fixed using the "".crdb_internal.table syntax for name
resolution, which is well-defined, and causes metadata from all
databases to appear in the crdb_internal virtual schema.

Release note (bug fix): The has_database_privilege function now
correctly will check privileges on databases that are not the current
database being used by the session.

This is fixed using the `"".crdb_internal.table` syntax for name
resolution, which is well-defined, and causes metadata from all
databases to appear in the crdb_internal virtual schema.

Release note (bug fix): The has_database_privilege function now
correctly will check privileges on databases that are not the current
database being used by the session.
@rafiss rafiss requested review from RichardJCai and a team May 20, 2021 20:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rafiss rafiss merged commit bb41d7a into cockroachdb:release-21.1 May 20, 2021
@rafiss rafiss deleted the backport21.1-65513 branch May 20, 2021 21:30
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