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

Error with set_transaction_isolation_level: :read_uncommited #72

Closed
ksherman opened this issue May 25, 2019 · 2 comments
Closed

Error with set_transaction_isolation_level: :read_uncommited #72

ksherman opened this issue May 25, 2019 · 2 comments

Comments

@ksherman
Copy link

Hiyya! Our DBA puts a lot of WITH (NOLOCK) on his queries and I'm trying to accomplish something similar in the Ecto queries.

It is my understanding that READ UNCOMMITTED is sorta the same thing, and it seems we can set this at the config level with tds_ecto? I've tried setting set_transaction_isolation_level: :read_uncommited in config but I get

[error] Tds.Protocol (#PID<0.1176.0>) failed to connect: ** (Tds.Error) Line 1 (Error 102): Incorrect syntax near 'UNCOMMITED'.

Not sure whassup. My guess here is maybe the atom should be :read_uncommitted as READ UNCOMMITTED should have two T's? https://docs.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql?view=sql-server-2017

@ksherman
Copy link
Author

ksherman commented May 25, 2019

(Sorry if this should be an issue over one the TDS repo, happy to close and move over there)

@mjaric
Copy link
Collaborator

mjaric commented May 26, 2019

Thanks for reporting, should be fixed now in tds v1.1.7

@mjaric mjaric closed this as completed May 26, 2019
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

No branches or pull requests

2 participants