Sample
Select the first and last bindings of an Ecto 3.14.1 query with ellipsis syntax
sha256:95a0b23d5d25c5fc2a24c9a208120b31c751ddb24af09fd6068501821e9682db
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- elixir 1
- Operating system
- linux
- Architecture
- x64
- Runtime
- elixir 1
- Language
- elixir
- Package manager
- mix
Verification-run environments
- Execution context
- elixir 1
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- elixir 1
- Language
- elixir
- Package manager
- mix
- Execution
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
Case
- Goal
- Select the first and last bindings of an Ecto 3.14.1 query with ellipsis syntax HOW
- Packages
-
ecto 3.14.1
- Environment
- elixir 1
- Created
- 2026-08-17T04:42:58Z
Commonly assumed
An Ecto query binding list must name every intermediate join, so `[first, ..., last]` cannot select the outer bindings.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- assert a query with two joins compiles when a follow-up from expression uses the binding list [first, ..., last]
- assert the resulting select expression refers to binding indexes 0 and 2, selecting the first source and final join
Files
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract_test.exs
- test/test_helper.exs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9