Commit 3f06f59
fix: add ORDER BY to combined SQL for deterministic result ordering
Individual SQL queries' ORDER BY clauses are not preserved when combined
with UNION ALL. Wrap the entire result in SELECT and ORDER BY cache_key!
to ensure consistent, deterministic ordering for tests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 7dd9257 commit 3f06f59
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
0 commit comments