Commit f02bf5a
Fix nested transactions and update SQLite_jll (#341)
- Add `intransaction(db)` helper to detect if already in a transaction
- Fix `transaction()` to use savepoints when nested and skip PRAGMA
statements that cannot run inside transactions
- Update SQLite_jll compat to 3.51
- Add test for issue #341 (load! inside transaction)
Fixes #341
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 079f6c2 commit f02bf5a
3 files changed
Lines changed: 61 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
650 | 658 | | |
651 | 659 | | |
652 | 660 | | |
653 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
654 | 664 | | |
655 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
656 | 671 | | |
657 | 672 | | |
658 | 673 | | |
| |||
663 | 678 | | |
664 | 679 | | |
665 | 680 | | |
666 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
667 | 684 | | |
668 | 685 | | |
669 | 686 | | |
| |||
673 | 690 | | |
674 | 691 | | |
675 | 692 | | |
676 | | - | |
| 693 | + | |
677 | 694 | | |
678 | 695 | | |
679 | 696 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
303 | 341 | | |
304 | 342 | | |
305 | 343 | | |
| |||
0 commit comments