rails-sqlserver / activerecord-sqlserver-adapter

SQL Server Adapter For Rails
MIT License
968 stars 558 forks source link

When asserting queries performed, insert placeholder query for release save-point #1168

Closed aidanharan closed 1 month ago

aidanharan commented 1 month ago

SQL Server does not support releasing save-points. They are automatically released when transitions are committed/rolled-back.

When the number of queries performed is asserted in tests, it is assumed that release save-point is supported. To work around this a dummy placeholder query is inserted if a transaction is saved at the start of the queries.