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

Unable to rename database due to views. #85401

Closed
Defman opened this issue Aug 1, 2022 · 3 comments
Closed

Unable to rename database due to views. #85401

Defman opened this issue Aug 1, 2022 · 3 comments
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) X-blathers-triaged blathers was able to find an owner

Comments

@Defman
Copy link

Defman commented Aug 1, 2022

Describe the problem

Cannot rename database do to views.

To Reproduce

CREATE VIEW issue AS SELECT 1;
ALTER DATABASE foo RENAME TO bar;

Expected behavior
I expect the database to be renamed without issue.

Jira issue: CRDB-18231

@Defman Defman added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Aug 1, 2022
@blathers-crl
Copy link

blathers-crl bot commented Aug 1, 2022

Hello, I am Blathers. I am here to help you get the issue triaged.

Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.

I have CC'd a few people who may be able to assist you:

  • @cockroachdb/sql-schema (found keywords: ALTER DATABASE)

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added O-community Originated from the community X-blathers-triaged blathers was able to find an owner labels Aug 1, 2022
@blathers-crl blathers-crl bot added the T-sql-schema-deprecated Use T-sql-foundations instead label Aug 1, 2022
@postamar
Copy link
Contributor

postamar commented Aug 2, 2022

I can't repro this, it works on master, so it appears that this has been fixed at some point. Please feel free to re-open in case I missed something.

@postamar postamar closed this as completed Aug 2, 2022
@ajwerner
Copy link
Contributor

ajwerner commented Aug 2, 2022

This is probably #10083. This is unfortunately expected. We hope to address this in a future release (though not the proximate release, 22.2).

@healthy-pod healthy-pod added T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) and removed T-sql-schema-deprecated Use T-sql-foundations instead labels May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) X-blathers-triaged blathers was able to find an owner
Projects
None yet
Development

No branches or pull requests

4 participants