Skip to content

[5.4] Added compileLock method to SqlServerGrammar.#17424

Merged
taylorotwell merged 3 commits into
laravel:5.4from
SebastianBerc:patch-4
Jan 19, 2017
Merged

[5.4] Added compileLock method to SqlServerGrammar.#17424
taylorotwell merged 3 commits into
laravel:5.4from
SebastianBerc:patch-4

Conversation

@SebastianBerc

Copy link
Copy Markdown
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