On 2024-09-11, Lawrence D'Oliveiro wrote:
> On Tue, 10 Sep 2024 22:48:36 - (UTC), Jon Ribbens wrote:
>> But what if you tell it the wrong thing ...
>
> To get back to the original point of this thread, all that rigmarole to
> try to ensure to call “rollback” in case of an exception is complet
On 2024-09-10, Lawrence D'Oliveiro wrote:
> On Tue, 10 Sep 2024 08:38:30 - (UTC), Jon Ribbens wrote:
>
>> On 2024-09-09, Lawrence D'Oliveiro wrote:
>>>
>>> On Mon, 9 Sep 2024 21:12:51 - (UTC), Jon Ribbens wrote:
On 2024-09-09, Lawrence D'Oliveiro wrote:
>
> On Mon, 9 Se
On 2024-09-10, Karsten Hilbert wrote:
> Am Tue, Sep 10, 2024 at 08:38:30AM - schrieb Jon Ribbens via Python-list:
>> Ok. So we've moved away from "In any DBMS worth its salt, rollback is
>> something that happens automatically"
>
> Nope. The original post asked something entirely different.
N
Am Tue, Sep 10, 2024 at 08:38:30AM - schrieb Jon Ribbens via Python-list:
> Ok. So we've moved away from "In any DBMS worth its salt, rollback is
> something that happens automatically"
Nope. The original post asked something entirely different.
> and now you're saying it isn't automatic aft
On 2024-09-09, Lawrence D'Oliveiro wrote:
> On Mon, 9 Sep 2024 21:12:51 - (UTC), Jon Ribbens wrote:
>> On 2024-09-09, Lawrence D'Oliveiro wrote:
>>> On Mon, 9 Sep 2024 10:00:11 - (UTC), Jon Ribbens wrote:
On 2024-09-09, Lawrence D'Oliveiro wrote:
> The database only needs to com
On 2024-09-09, Lawrence D'Oliveiro wrote:
> On Mon, 9 Sep 2024 10:00:11 - (UTC), Jon Ribbens wrote:
>> On 2024-09-09, Lawrence D'Oliveiro wrote:
>>> The database only needs to commit when it is explicitly told. Anything
>>> less -- no commit.
>>
>> So the Python code is half-way through a tr
On 2024-09-09, Karsten Hilbert wrote:
> Am Mon, Sep 09, 2024 at 10:00:11AM - schrieb Jon Ribbens via Python-list:
>> So the Python code is half-way through a transaction when it throws
>> a (non-database-related) exception and that thread of execution is
>> aborted. The database connection ret
Am Mon, Sep 09, 2024 at 10:00:11AM - schrieb Jon Ribbens via Python-list:
> So the Python code is half-way through a transaction when it throws
> a (non-database-related) exception and that thread of execution is
> aborted. The database connection returns to the pool,
How does it return to th
Am Mon, Sep 09, 2024 at 10:00:11AM - schrieb Jon Ribbens via Python-list:
> > The database only needs to commit when it is explicitly told. Anything
> > less -- no commit.
>
> So the Python code is half-way through a transaction when it throws
> a (non-database-related) exception and that thre
On 2024-09-08, Lawrence D'Oliveiro wrote:
> On Sun, 8 Sep 2024 11:03:21 - (UTC), Jon Ribbens wrote:
>> What if there's an exception in your exception handler? I'd put the
>> rollback in the 'finally' handler, so it's always called. If you've
>> already called 'commit' then the rollback does no
On 2024-09-09, Lawrence D'Oliveiro wrote:
> On Mon, 9 Sep 2024 09:13:40 - (UTC), Jon Ribbens wrote:
>> On 2024-09-08, Lawrence D'Oliveiro wrote:
>>> On Sun, 8 Sep 2024 11:03:21 - (UTC), Jon Ribbens wrote:
What if there's an exception in your exception handler? I'd put the
rollba
11 matches
Mail list logo