BHoM / BHoM/SQL_Toolkit

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

Ouverte
#30 0 commentaires 0 réactions 1 personne assignée Réclamée par @adecler Voir sur GitHub
type:bug
Langage dominant
C#
Étoiles
1
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

#### 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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.