-
Notifications
You must be signed in to change notification settings - Fork 229
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
6.0.0: Timestamp error despite legacy switch #2140
Comments
I cloned your repo, modified PostgreSQLConnection in appsettings.Test.json to point to a local database and ran the Should_Get_Appointments test, and it passed. Can you please double-check the failure? If you're still seeing an issue, can you please isolate it in a more minimal runnable sample? Sending the entire project with all the infrastructure doesn't help to diagnose what's going on etc. |
@roji Thanks for cloning my repo. |
@VILLAN3LL3 in your repo, I reverted the commit the mentioned above (8710b9750561a46ba0ccc8866338f5258cad3938), and the Should_Get_Appointments still passes. I really need clear, simple instructions on how to see an actual failure here. |
@roji With |
In one of my integration tests, the following exception is thrown even though I have the legacy switch set to true in my dbcontext:
Here's the branch with the legacy switch set to true.
The failing test is this one: Should_Get_Appointments
Used package version:
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.0" />
The test mentioned above queries the entity Appointment with the following predicate:
The exception occurs if
rangeStartTime
orrangeEndTime
areDateTime
objects using the.Date
property ofDateTime
, e.g.If I use
it works.
The text was updated successfully, but these errors were encountered: