rails-sqlserver / activerecord-sqlserver-adapter

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

Coerce test with trigger to autopopulate primary key on insert #1186

Closed aidanharan closed 3 weeks ago

aidanharan commented 1 month ago

Coerce PersistenceTest#test_model_with_no_auto_populated_fields_still_returns_primary_key_after_insert.

https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/actions/runs/9172172552/job/25218095721

 3) Error:
PersistenceTest#test_model_with_no_auto_populated_fields_still_returns_primary_key_after_insert:
ActiveRecord::NotNullViolation: TinyTds::Error: Cannot insert the value NULL into column 'id', table 'activerecord_unittest.dbo.pk_autopopulated_by_a_trigger_records'; column does not allow nulls. INSERT fails.