Commit 88fcc3d
Pin RETURNING and multivalues-insert flags locally on DqliteDialect
The SQLAlchemy 2.x tripartite RETURNING flags (insert_returning /
update_returning / delete_returning) and supports_multivalues_insert
were inherited silently from SQLiteDialect. Dqlite runs SQLite >= 3.35,
so both RETURNING and multi-row INSERT VALUES are genuinely supported,
but leaving the flags inherited means an upstream change to SQLiteDialect
(e.g. version-gated discovery) could silently alter dqlite behaviour.
Pin the four flags locally, matching the existing precedent for
supports_native_boolean, supports_sane_isolation_level, and
supports_native_decimal. Pin tests assert both the value and that the
declaration lives in DqliteDialect.__dict__ so inheritance drift is
caught.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3833a18 commit 88fcc3d
2 files changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
99 | 113 | | |
100 | 114 | | |
101 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
56 | 73 | | |
57 | 74 | | |
58 | 75 | | |
| |||
0 commit comments