Skip to content

Added nested transactions support for SqlServer - #19439

Merged
taylorotwell merged 1 commit into
laravel:5.4from
Crinsane:5.4
Jun 1, 2017
Merged

taylorotwell merged 1 commit into
laravel:5.4from
Crinsane:5.4

Conversation

@Crinsane

@Crinsane Crinsane commented Jun 1, 2017

Copy link
Copy Markdown
Contributor

This PR adds support for nested transactions in SqlServer. Currently the QueryGrammar for SqlServer returns false for supportsSavepoints, but it seems SqlServer does actually support those.

https://docs.microsoft.com/en-us/sql/t-sql/language-elements/save-transaction-transact-sql

This PR simply changes the supportsSavepoints method to return true and it adds the specific grammar for SqlServer to compile a savepoint and a rollback from a savepoint.

@Crinsane

Crinsane commented Jun 1, 2017

Copy link
Copy Markdown
Contributor Author

This should also fix #19415

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