Skip to content

Conversation

@mtcmorris
Copy link
Contributor

What

I found on a set up when:

SET ALLOW_SNAPSHOT_ISOLATION ON
SET READ_COMMITTED_SNAPSHOT ON

That you'd get the error: TinyTds::Error: Incorrect syntax near 'SNAPSHOT'.: SET TRANSACTION ISOLATION LEVEL READ COMMITTED SNAPSHOT. This occurs because after running the transaction, the adapter is attempting to set the isolation level to connection.user_options_isolation_level which is actually read committed snapshot which is not valid.

I wasn't able to run the entire test suite on my setup but was able to get a fail, fix, pass for this specific issue.

@metaskills
Copy link
Member

Thanks, I'll round back to this once I get the Rails 5 work in master in a better condition. At least a few weeks.

@mtcmorris mtcmorris closed this Oct 19, 2016
@benhoskings
Copy link

@metaskills Just bumping this issue now that the rails 5 work is in master. Cheers

@metaskills metaskills reopened this Feb 9, 2017
@metaskills metaskills merged commit 1a248d8 into rails-sqlserver:master Feb 16, 2017
@metaskills
Copy link
Member

Thanks so much! Released v5.0.4 with this included.

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.

3 participants