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

Values for DateTime properties below SQLDateTime.MinValue cause errors on push #30

Open
enarhi opened this issue Feb 17, 2023 · 0 comments
Assignees
Labels
type:bug Error or unexpected behaviour

Comments

@enarhi
Copy link
Member

enarhi commented Feb 17, 2023

Description:

When pushing any objects with a DateTime property set to DateTime.MinValue or any value before the SQLDateTime.MinValue of 1/1/1753, the push fails as the DateTime can not be sent to the DB. We should add handling to check for values below the SQL MinValue, and set them to the SQL MinValue accordingly.

Steps to reproduce:

Send object with a DateTime property set to earlier than 1753 to a SQL table for the corresponding object type.

Expected behaviour:

Successful push of the object, with the date set to the SQL MinValue.

@enarhi enarhi added the type:bug Error or unexpected behaviour label Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error or unexpected behaviour
Projects
None yet
Development

No branches or pull requests

2 participants