Skip to content

raise exception if not in transaction #74

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

donbobka
Copy link

@donbobka donbobka commented Apr 21, 2023

Should we raise exception to avoid incorrect usage of transaction: true? Another approach will be create transaction

Current behavior of library: it silently runs SELECT pg_advisory_xact_lock(...) that without transaction means lock with immediate unlock and then pass execution to block without active advisory lock.

@donbobka donbobka force-pushed the raise-if-not-transaction branch 3 times, most recently from 727cbeb to b11872e Compare April 21, 2023 04:47
better message

add test

fix
@donbobka donbobka force-pushed the raise-if-not-transaction branch from bd43a5d to e15bdfd Compare April 21, 2023 05:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant