Empty string values are coerced to nulls when a non-string-like ORM type is declared

Description

In a nutshell, this property declares a timestamp field which defaults to an empty string and is not nullable:

What should happen:

Upon save the entity with no expireDate value set, the field save an empty string to the table row.

What actually happens:

Entity saves throw an error:

Version Notes:

This issue was occurring in pre-6.5.0 builds, was fixed in 6.50, but then regressed in 6.5.1.

Environment

None

Activity

Show:

Michael Born @ OrtusFebruary 21, 2024 at 3:39 PM

Resolved in 6.5.2, which will be out shortly.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Sentry

Created February 21, 2024 at 3:26 PM
Updated February 21, 2024 at 3:39 PM
Resolved February 21, 2024 at 3:39 PM