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

Add support for OF in row lock clauses #288

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Add support for OF in row lock clauses #288

merged 1 commit into from
Dec 1, 2023

Conversation

mattdowdell
Copy link
Contributor

@mattdowdell mattdowdell commented Nov 21, 2023

This adds support for statements such as SELECT ... FOR UPDATE OF table NOWAIT where OF table could not be specified previously. Fixes #285.

@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6a13530) 90.62% compared to head (f16f0b5) 90.63%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #288      +/-   ##
==========================================
+ Coverage   90.62%   90.63%   +0.01%     
==========================================
  Files         124      124              
  Lines        7079     7094      +15     
==========================================
+ Hits         6415     6430      +15     
  Misses        513      513              
  Partials      151      151              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

internal/jet/select_lock.go Outdated Show resolved Hide resolved
@go-jet
Copy link
Owner

go-jet commented Nov 22, 2023

Could you also add one integration test just to make sure everything works with live db.

@mattdowdell
Copy link
Contributor Author

Could you also add one integration test just to make sure everything works with live db.

Done in 71654cd.

internal/jet/select_lock.go Outdated Show resolved Hide resolved
This adds support for statements such as `SELECT ... FOR UPDATE OF table NOWAIT` where `OF table`
could not be specified previously. Fixes #285.
@mattdowdell mattdowdell changed the title Add support to OF in row lock clauses Add support for OF in row lock clauses Nov 30, 2023
@go-jet
Copy link
Owner

go-jet commented Dec 1, 2023

LGTM. 👍

@go-jet go-jet merged commit 5cbaa90 into go-jet:master Dec 1, 2023
3 checks passed
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.

Support OF in locking clause
3 participants