gorm: Go test errors with mssql

When using transactions the following error appears mssql: The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION. Edit: Let’s solve mssql errors one at a time

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 23 (13 by maintainers)

Most upvoted comments

Hi @all, Fixed all tests for mssql 👏

@LuisBosquez thank you, it works!

a little problem in your code is the last line should be:

`sp_changedbowner ‘gorm’;

but not

sp_addrole 'gorm' , 'db_owner';

@LuisBosquez I’ve opened a PR to remove the automatic IDENTITY_INSERT entirely, #1379, no progress or comments on that though.

Easiest fix at the moment is to just manually apply the changes in that PR, and vendor Gorm.

Any updates on getting these changes merged into the mssql driver?