ash-project / ash-project/ash_sql
refactor: use `{path, type, integer}` for start_bindings instead of just integers to avoid shadowing
Open
enhancement
- Dominant language
- Elixir
- Stars
- 9
- Forks
- 41
- Avg merge
- 9h 34m
- Merged PRs (30d)
- 15
Description
In specific cases, an SQL query can reference the wrong table because the bindings are shadowed by a join/subquery. Using a more specific identifier for the binding should avoid shadowing.
Contributor guide
Research direction
No file or test is named. Start by locating start_bindings in the SQL data-layer code and trace a query where a join or subquery shadows a binding; done means the binding uses the more specific identifier and resolves the intended table, with a regression test covering the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- databases
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100