You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go SDK docs: the EQL type table says ordered types support ORDER BY, but a plain ORDER BY col sorts wrongly #1851
The Go SDK is in languages/golang in this repository. Its user docs are the READMEs of encrypt and cmd/stashgen, the package doc comments, and the testable examples. pkg.go.dev shows all of them. In November 2026 we audited the docs of version v0.1.0-rc.7. AI agents built programs from the published docs alone, against a dev workspace and PostgreSQL 17 with EQL (Encrypt Query Language) v4. EQL is the SQL extension that stores and queries encrypted values.
Problem
The EQL type table lists ORDER BY for every ordered type. A plain ORDER BY col returns rows in the wrong order, with no error. This is true on every Ord and OrdOre type we tried. Only ORDER BY eql_v4.ord_term(col) or ORDER BY eql_v4.ord_term_ore(col) sorts correctly.
A user who follows the table gets wrongly sorted results and no warning.
Proposal
In the type table, write the sort expression for each ordered type.
Add a warning that a plain ORDER BY col sorts wrongly, with no error.
Evidence
Verified in the database, on Ord and OrdOre types.
Activity
docs(golang): list every ordered EQL type and its operators