Commit 920c1ff
Merge SA 2.1 compat into core20.py, supporting both SA 2.0 and 2.1 (#254)
* Merge SA 2.1 compat into core20.py, supporting both SA 2.0 and 2.1
Consolidate `core21.py` into `core20.py` by guarding the three
SA 2.1-specific differences behind `SA_VERSION >= SA_2_1` checks:
- `visiting_cte` parameter and `toplevel` logic in `visit_update`
- `update_post_criteria_clause` (renamed from `update_limit_clause`)
- removal of the `_ordered_values` branch in `_get_crud_params`
Delete `core21.py` and simplify the dialect dispatch to always use
`CrateCompilerSA20` for SA >= 2.0.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Make linter happy
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent aa3376c commit 920c1ff
3 files changed
Lines changed: 26 additions & 437 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | | - | |
61 | 74 | | |
62 | 75 | | |
63 | 76 | | |
| |||
152 | 165 | | |
153 | 166 | | |
154 | 167 | | |
155 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
156 | 173 | | |
157 | 174 | | |
158 | 175 | | |
| |||
275 | 292 | | |
276 | 293 | | |
277 | 294 | | |
278 | | - | |
| 295 | + | |
| 296 | + | |
279 | 297 | | |
280 | 298 | | |
281 | 299 | | |
| |||
0 commit comments