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-20.2: sql/*: remove MakeTableName (without schema) function #61890

Merged
merged 1 commit into from Mar 15, 2021

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Mar 12, 2021

Backport 1/2 commits from #61752.

/cc @cockroachdb/release


This made it very easy to forget to account for user-defined schemas.
Removing the function should prevent a big class of bugs.

This is broken up into 2 commits. The first fixes some cases that appeared
to me as if they'd benefit from looking up the schema name, and is intended
for a backport back to 20.2. The second commit is a refactor that removes the
non-schema MakeTableName function and probably doesn't need to be backported.

In addition to the release note below, this also fixes the error message
that would appear when trying to drop a role that owns a table in a
user-defined schema.

Release note (bug fix): Using EXPLAIN (OPT, ENV) on a query that
references a table in a user-defined schema would fail previously. This
is now fixed.

@rafiss rafiss requested review from solongordon and a team March 12, 2021 03:21
@rafiss rafiss requested a review from a team as a code owner March 12, 2021 03:21
@rafiss rafiss requested review from adityamaru and removed request for a team March 12, 2021 03:21
@cockroach-teamcity
Copy link
Member

This change is Reviewable

In addition to the release note below, this also fixes the error message
that would appear when trying to drop a role that owns a table in a
user-defined schema.

Release note (bug fix): Using EXPLAIN (OPT, ENV) on a query that
references a table in a user-defined schema would fail previously. This
is now fixed.
@rafiss rafiss merged commit 223edf3 into cockroachdb:release-20.2 Mar 15, 2021
@rafiss rafiss deleted the backport20.2-61752 branch March 15, 2021 17:12
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