Skip to content
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: support COLLATE "default" in SELECT queries #50734

Closed
rafiss opened this issue Jun 27, 2020 · 0 comments · Fixed by #96828
Closed

sql: support COLLATE "default" in SELECT queries #50734

rafiss opened this issue Jun 27, 2020 · 0 comments · Fixed by #96828
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)

Comments

@rafiss
Copy link
Collaborator

rafiss commented Jun 27, 2020

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-EXPRS

CockroachDB doesn't support COLLATE in general right now, but some tools (e.g. Prisma) use COLLATE "default" in their queries, which it seems does not differ from the behavior of not having any COLLATE clause at all.

CockroachDB should support a default COLLATE expression.

Jira issue: CRDB-4095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant