You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constclient=newPGlite();awaitclient.transaction(async(tx)=>{awaittx.query('select 1');awaitclient.query('select 1');// process just exits without any errors})
Is this an intended behavior? (I know that I shouldn't do this, but still)
$ node -v
v20.11.0
$ arch
arm64
The text was updated successfully, but these errors were encountered:
Hey @denis-sepirak
Yep, using the client instance inside an interactive transaction is not supported. There is no specific error handling for it apart from a Mutex at the moment, it may be that it's deadlocking.
I'm going to repurpose this issue to track adding error handling to this situation.
samwillis
changed the title
Question: Using original client within an interactive transaction
Throw error when main db instance method used inside an interactive transaction
Apr 17, 2024
Is this an intended behavior? (I know that I shouldn't do this, but still)
The text was updated successfully, but these errors were encountered: