-
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: Link to deprecation docs when returning ERROR for cross-database references #57782
Comments
@ericharmeling for input on the error message wording |
In the case of views, I'd make the text read something like:
The first two sentences of the message depend on the referencing object, but the two sentences after the newline should be the same for FKs, sequences, and UDTs. We link to the tracking issue from the doc, so I'm not sure we need both URLs. |
@ericharmeling Thoughts on |
Sorry for the late response. Are cross-database references officially deprecated in v20.2? I can update the docs if yes. |
Yeah, they are. Aren't the docs already updated at: https://www.cockroachlabs.com/docs/releases/v20.2.0.html#deprecations? |
Yes. I just updated this page. |
59551: sql: add link to deprecation docs for cross db references in the error r=otan a=arulajmani Closes #57782 Release note (sql change): error messages for cross-database links now include a hint directing to the user to the deprecation docs. An example message looks like: ``` ERROR: the view cannot refer to other databases; (see the 'sql.cross_db_views.enabled' cluster setting) SQLSTATE: 0A000 HINT: Note that cross database references will be removed in future releases. See: https://www.cockroachlabs.com/docs/releases/v21.1.0.html#deprecations ``` Co-authored-by: arulajmani <[email protected]>
59551: sql: add link to deprecation docs for cross db references in the error r=otan a=arulajmani Closes #57782 Release note (sql change): error messages for cross-database links now include a hint directing to the user to the deprecation docs. An example message looks like: ``` ERROR: the view cannot refer to other databases; (see the 'sql.cross_db_views.enabled' cluster setting) SQLSTATE: 0A000 HINT: Note that cross database references will be removed in future releases. See: https://www.cockroachlabs.com/docs/releases/v21.1.0.html#deprecations ``` Co-authored-by: arulajmani <[email protected]>
Closes cockroachdb#57782 Release note (sql change): error messages for cross-database links now include a hint directing to the user to the deprecation docs. An example message looks like: ``` ERROR: the view cannot refer to other databases; (see the 'sql.cross_db_views.enabled' cluster setting) SQLSTATE: 0A000 HINT: Note that cross database references will be removed in future releases. See: https://www.cockroachlabs.com/docs/releases/v21.1.0.html#deprecations ```
Received feedback that the below error message for cross databases should link to the Github issue for removal so that users can provide feedback. We can also link to deprecation docs
The text was updated successfully, but these errors were encountered: