BHoM / BHoM/SQL_Toolkit

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

Đang mở
#30 0 bình luận 0 reaction 1 người được giao Được @adecler nhận Xem trên GitHub
type:bug
Ngôn ngữ chính
C#
Star
1
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.