sql: support COLLATE "default" in SELECT queries #50734
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Postgres allows a
COLLATE
clause to appear at the end of an expression. See: https://www.postgresql.org/docs/12/sql-expressions.html#SQL-SYNTAX-COLLATE-EXPRSCockroachDB doesn't support
COLLATE
in general right now, but some tools (e.g. Prisma) useCOLLATE "default"
in their queries, which it seems does not differ from the behavior of not having anyCOLLATE
clause at all.CockroachDB should support a default
COLLATE
expression.Jira issue: CRDB-4095
The text was updated successfully, but these errors were encountered: