Skip to content

sql: COLLATE "C" seems to no longer be supported in some contexts #145246

@yuzefovich

Description

@yuzefovich

Extracted from #144338.

This snippet used to work on 25.1 and prior versions

CREATE TABLE concur_exprs_tab (c1 int , c2 boolean);
CREATE UNIQUE INDEX concur_exprs_index_expr ON concur_exprs_tab ((c1::text COLLATE "C"));

but it doesn't anymore - we now get ERROR: invalid locale c: language: tag is not well-formed on the index creation. I bisected it to fb7a7b3.

Adding a GA-blocker for now so that we decide whether it's acceptable or not.

Jira issue: CRDB-49807

Metadata

Metadata

Assignees

Labels

C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.GA-blockerP-1Issues/test failures with a fix SLA of 1 monthT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)branch-masterFailures and bugs on the master branch.branch-release-25.2v25.2.0-prereleasev25.3.0-prerelease

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions