Skip to content

Add collate for order by#405

Open
tanner-lai wants to merge 1 commit into
doug-martin:masterfrom
tanner-lai:collate
Open

Add collate for order by#405
tanner-lai wants to merge 1 commit into
doug-martin:masterfrom
tanner-lai:collate

Conversation

@tanner-lai

Copy link
Copy Markdown

Adds support for collations on ordered expressions, e.g. as per https://learn.microsoft.com/en-us/sql/t-sql/statements/collations?view=sql-server-ver16#examples

goqu.From("Locations").Select(goqu.I("Place")).Order(goqu.I("Place").Collate("Latin1_General_CS_AS_KS_WS").Asc()
SELECT Place FROM Locations
ORDER BY Place
COLLATE Latin1_General_CS_AS_KS_WS ASC;

Added tests, documentation, and examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant