-
Notifications
You must be signed in to change notification settings - Fork 612
support for session transaction and transaction snapshot. #379
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
Conversation
Signed-off-by: poonai <[email protected]>
Signed-off-by: poonai <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @poonai -- look like a nice addition
tests/sqlparser_common.rs
Outdated
@@ -3586,7 +3586,7 @@ fn parse_set_transaction() { | |||
// TRANSACTION, so no need to duplicate the tests here. We just do a quick | |||
// sanity check. | |||
match verified_stmt("SET TRANSACTION READ ONLY, READ WRITE, ISOLATION LEVEL SERIALIZABLE") { | |||
Statement::SetTransaction { modes } => assert_eq!( | |||
Statement::SetTransaction { modes, .. } => assert_eq!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be valuable to validate the contents of session
and mode
here
Pull Request Test Coverage Report for Build 1579647958Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@poonai looks like this PR needs to have |
Signed-off-by: poonai <[email protected]>
@alamb done and thanks for the project. :) |
🙇 thank you -- I am but a caretaker of the giants that came before me (@andygrove and @nickolay, @Dandandan and @benesch largely) |
I pushed ce23ba0 to get the CI to run cleanly |
Thanks again @poonai |
added support for snapshot and session-wide transactions as per
https://www.postgresql.org/docs/9.3/sql-set-transaction.html