forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
134614: sql: add hints to commonly-encountered errors r=DrewKimball a=DrewKimball #### sql: add hint for unqualified column reference in trigger WHEN clause This commit adds a hint to the error when a user attempts to reference a column in a trigger's WHEN clause without qualifying it by `NEW` or `OLD`. Informs cockroachdb#121513 Release note: None #### sql: add hint to error for missing parens in tuple element access In Postgres, it is possible to reference an element of a composite-typed column or variable like so: `colname.fieldname`. Currently, we require that the column/variable name be wrapped in parentheses: `(colname).fieldname`. This is often confusing for users. This commit adds a hint to the error to make it more clear that parentheses are necessary. Informs cockroachdb#114687 Informs cockroachdb#121513 Release note: None Co-authored-by: Drew Kimball <[email protected]>
- Loading branch information
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters