Support the ongoing development of Laravel.io →
Database
Last updated 2 years ago.
0

Did you find a solution? I'm trying to do the same thing.

It looks like Illuminate\Database\Query\Grammars\SqlServerGrammar uses a "compileFrom" function. This compiles the lock based on $query->lock

I've tried using this but I'm getting 2 outputs of "with (nolock)" like the below sample query.

select * from users with (nolock) where users.id = 1 limit 1 with (nolock)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.