-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/sem/tree: make function names properly case-sensitive
There was a time in the past where CockroachDB was (or attempted to be) case-insensitive about identifiers, and this was a source of incompatibility with PostgreSQL. This incompatibility was corrected for object (table/view/database/index) names and column names in #16884, but somehow I forgot about function names in that patch. As a result, CockroachDB continued to consider `upper()` and `"UPPER"()` the same thing, whereas most definitely only the former is valid. This patch corrects the issue and simplifies the code accordingly. Release note (sql change): CockroachDB now properly rejects incorrectly cased SQL function names with an error.
- Loading branch information
Showing
3 changed files
with
10 additions
and
21 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