Commit 220d29d
Fix Go SQLite E2E: force single connection for in-memory DB
Go's sql.DB is a connection pool. With :memory:, each connection gets
its own separate in-memory database, so INSERT on one connection is
invisible to SELECT on another. SetMaxOpenConns(1) forces all queries
to share the same in-memory database.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5387c54 commit 220d29d
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
0 commit comments