Skip to content

Commit

Permalink
Update tds.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Aug 8, 2023
1 parent 3c0fe1c commit 7571318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/adapters/tds.ex
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ defmodule Ecto.Adapters.Tds do
{:ok, result} =
transaction(meta, opts, fn ->
query =
"sp_getapplock @Resource = 'ecto_#{inspect(repo)}', @LockMode = 'Exclusive', @LockOwner = 'Transaction', @LockTimeout = -1"
"exec sp_getapplock @Resource = 'ecto_#{inspect(repo)}', @LockMode = 'Exclusive', @LockOwner = 'Transaction', @LockTimeout = -1"

Ecto.Adapters.SQL.query!(meta, query, [], opts)
fun.()
Expand Down

0 comments on commit 7571318

Please sign in to comment.