-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: use qualifiable schema name for comment on schema #79055
sql: use qualifiable schema name for comment on schema #79055
Conversation
12ee5b8
to
4f259ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to our ought to backport this
Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @chengxiong-ruan)
pkg/sql/comment_on_schema.go, line 47 at r1 (raw file):
dbName = n.Name.Catalog() } else { // Users can't create a schema without being connected to a DB.
this comment is now stale, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I'll remove the flag before merging it.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @ajwerner)
pkg/sql/comment_on_schema.go, line 47 at r1 (raw file):
Previously, ajwerner wrote…
this comment is now stale, no?
ha yeah, my understanding on this comment was that we can always get a current db anyhow. but this seems not important anymore here, will remove it.
Previously we only use current db to resolve a schema when comment on a schema. This is painful at least for our testing sometimes because we need to switch db before commenting on a schema. Release justification: low impact but can be useful for users. Release note (sql change): `COMMENT ON SCHEMA` now can use qualified schema name. So can do both `COMMENT ON SCHEMA sc_name ...` and `COMMENT ON SCHEMA db_name.sc_name ...`.
4f259ec
to
029239a
Compare
TFTR! |
Build succeeded: |
Previously we only use current db to resolve a schema when comment
on a schema. This is painful at least for our testing sometimes
because we need to switch db before commenting on a schema.
Release justification: low impact but can be useful for users.
Release note (sql change):
COMMENT ON SCHEMA
now can use qualifiedschema name. So can do both
COMMENT ON SCHEMA sc_name ...
andCOMMENT ON SCHEMA db_name.sc_name ...
.