Commit a0e94f7
committed
Add
This was the original reason the PR was reverted, see
#18346
> The `RETURNING` syntax has been supported by SQLite since version 3.35.0 (2021-03-12).
>
> *-- https://www.sqlite.org/lang_returning.html*
Synapse supports...
> The oldest supported version of SQLite is the version [provided](https://packages.debian.org/bullseye/libsqlite3-0) by [Debian oldstable](https://wiki.debian.org/DebianOldStable).
>
> *-- https://element-hq.github.io/synapse/latest/deprecation_policy.html*
which currently is https://packages.debian.org/bullseye/sqlite3 -> `3.34.1-3+deb11u1`
We have `self.db_pool.engine.supports_returning` to detect whether we can use `RETURNING`.RETURNING alternative for old versions of SQLite1 parent eb89758 commit a0e94f7
1 file changed
+34
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2576 | 2576 | | |
2577 | 2577 | | |
2578 | 2578 | | |
2579 | | - | |
| 2579 | + | |
| 2580 | + | |
2580 | 2581 | | |
2581 | 2582 | | |
2582 | 2583 | | |
| |||
2770 | 2771 | | |
2771 | 2772 | | |
2772 | 2773 | | |
2773 | | - | |
2774 | | - | |
| 2774 | + | |
2775 | 2775 | | |
2776 | 2776 | | |
2777 | 2777 | | |
| |||
2798 | 2798 | | |
2799 | 2799 | | |
2800 | 2800 | | |
2801 | | - | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
2805 | | - | |
2806 | | - | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
2807 | 2832 | | |
2808 | 2833 | | |
2809 | 2834 | | |
| |||
0 commit comments