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

[5.4] Added compileLock method to SqlServerGrammar. #17424

Merged
merged 3 commits into from
Jan 19, 2017
Merged

[5.4] Added compileLock method to SqlServerGrammar. #17424

merged 3 commits into from
Jan 19, 2017

Conversation

SebastianBerc
Copy link
Contributor

In SQL Server:

$builder->select('*')->from('foo')->where('bar', '=', 'baz')->lock('with(holdlock)');

will generate SQL:

'select * from [foo] with(holdlock) where [bar] = ? with(holdlock)'

because a lock is added in the compileFrom method and overriding the compileLock method doesn't exist.

@taylorotwell taylorotwell merged commit fd0cbbf into laravel:5.4 Jan 19, 2017
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.

2 participants