Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/cases/coerced_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,9 @@ def test_update_coerced
assert_not_predicate topic, :approved?
assert_equal "The First Topic", topic.title
end

# In SQL Server it's not possible to set the primary key column using a trigger and to get it then to return.
coerce_tests! :test_model_with_no_auto_populated_fields_still_returns_primary_key_after_insert
end

require "models/author"
Expand Down
Loading