Commit edf5b80
authored
fix(db): force max_connections=1 for in-memory SQLite pools (#2491)
Each physical connection to sqlite::memory: is a separate empty database.
When the pool size is >1, queries routed to connections other than the one
that ran migrations hit a schema-less DB and fail with
"no such column: superseded_by".
Capping max_connections at 1 for :memory: URLs ensures all queries share
the same migrated schema. Fixes 91 failing graph tests introduced after
migration 056 (superseded_by column) in PR #2465.
Closes #24681 parent b447fa1 commit edf5b80
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
0 commit comments