Skip to content

Support for FOR UPDATE and FOR SHARE queries#1777

Merged
janmeier merged 2 commits intomasterfrom
forUpdate
May 16, 2014
Merged

Support for FOR UPDATE and FOR SHARE queries#1777
janmeier merged 2 commits intomasterfrom
forUpdate

Conversation

@janmeier
Copy link
Copy Markdown
Member

This PR is mostly just a travis runner before I merge this in :) .Closes #1442

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mickhansen Do you think this is okay - tacking the actual query string into the supports object so we only have to write the code in abstract QG, or should we have a separate object for this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janmeier not sure, this seems reasonable, although i assume you mean you only write the code in the dialect (Rather than the abstracg QG)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What i meant was we only need to add the code that adds FOR SHARE / LOCK IN SHARE MODE in the abstract query generator, while the string for the specific dialect is in index

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right :)

janmeier added a commit that referenced this pull request May 16, 2014
Support for FOR UPDATE and FOR SHARE queries
@janmeier janmeier merged commit 3eff6ce into master May 16, 2014
@janmeier janmeier deleted the forUpdate branch May 16, 2014 14:07
@DenisGorbachev
Copy link
Copy Markdown

@janmeier I thought that was a bug in documentation :) Maybe it's better to clarify that the second row is just for example?

@janmeier
Copy link
Copy Markdown
Member Author

@DenisGorbachev Agreed - PR welcome :)

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 for Row Locking

4 participants