Skip to content
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

Update QueryTrackingBehavior benchmark as it fails due to attempts to insert nulls into not nullable db columns #4702

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

davepcallan
Copy link
Contributor

Without modification this benchmark fails as blog url and post title and content are not marked as nullable ? and we don't explicitly insert into these fields in the SeedData method so SQL Server rejects the insert.

Have amended SeedData to insert dummy data into blog.url, and post.title and post.content.

Alternative is to remove these fields or mark them as nullable but in the context of tracking v no-tracking, better to keep a more realistic scenario and just populate the fields IMHO.

Without modification this benchmark fails as blog url and post title and content are not marked as nullable ? and we don't explicitly insert into these fields in the SeedData method so SQL Server rejects the insert.

Have amended SeedData to insert dummy data into blog.url, and post.title and post.content. 

Alternative is to remove these fields or mark them as nullable but in the context of tracking v no-tracking, better to keep a more realistic scenario and just populate the fields IMHO.
@maumar maumar requested a review from roji September 25, 2024 19:23
@roji
Copy link
Member

roji commented Sep 25, 2024

@maumar want to take this?

@maumar maumar requested review from maumar and removed request for roji October 12, 2024 08:12
@maumar maumar merged commit e880eee into dotnet:main Oct 14, 2024
3 checks passed
@maumar
Copy link
Contributor

maumar commented Oct 14, 2024

Thank you for the contribution @davepcallan !

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.

3 participants