Commit 3e84537
committed
fix: diagnose/report use of SQLite without FTS5 support
As of 2.2.0 Roundup requires FTS5 support in SQLite. FTS5 has been part
of the main SQLite distribution since October 2015.
Tonu Mikk found this when trying to run 2.3.0 under RedHat 7.
He got a traceback when trying to spin up 2.3.0. It took us a bit to
figure out that FTS5 was missing from the SQLite library used by
Python3. See: https://sourceforge.net/p/roundup/mailman/message/51783129/
This change catches the sql error and checks to see if the ENABLE_FTS5
compile option is defined. If not it raises NotImplementedError with a
more useful error message and reports the version of SQLite in use.
This will at least ease diagnosis.
Trying to support SQLite without FTS5 support raises a number of
issues including tracking the internal schema used by Roundup.
So not going to attempt that.
Details: https://sourceforge.net/p/roundup/mailman/message/51783321/1 parent 27646f5 commit 3e84537
2 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
| 256 | + | |
256 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
257 | 270 | | |
258 | 271 | | |
259 | 272 | | |
| |||
0 commit comments