Commit 6f07252
committed
gh-145040: Fix close_attempted_in_callback flag consumed by nested callbacks
Only check and consume the close_attempted_in_callback flag when
in_callback reaches zero (the outermost level). Previously, a nested
stmt_step() inside a callback could consume the flag, causing the
outermost caller to miss the error.1 parent eb69460 commit 6f07252
File tree
2 files changed
+33
-2
lines changed- Lib/test/test_sqlite3
- Modules/_sqlite
2 files changed
+33
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
800 | 827 | | |
801 | 828 | | |
802 | 829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
912 | 914 | | |
913 | 915 | | |
914 | 916 | | |
| |||
1168 | 1170 | | |
1169 | 1171 | | |
1170 | 1172 | | |
1171 | | - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1172 | 1176 | | |
1173 | 1177 | | |
1174 | 1178 | | |
| |||
0 commit comments