Skip to content

Saving an empty string converts to nil, triggered NOT NULL violation. #3172

@inopinatus

Description

@inopinatus

When saving an empty string, I don't expect it to be converted to nil. That is not normal behaviour. This breaks database NOT NULL string fields.

Probably caused by 9e528f1. I think that should be a configurable option, not a hard-coded behaviour.

Applications with schemas so badly defined that they actually need to map the empty string to NULL in string fields should have to configure that specially.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions