Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

raise exception if not in transaction #74

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant