Skip to content

BulkSaveChangesAsync trims spaces which is not wanted behaviour. #1894

@nazariiboichyshyn-cmd

Description

@nazariiboichyshyn-cmd

BulkSaveChangesAsync trims spaces in SQL server:

Lets say I have value "X" and update it to "X " - this is totally ignored and in the DB there is no update to "X ".
If I update "X" to "XX " - it works as expected and I can see spaces.
The optimization seems to works like this: if we have 5 symbols in DB and add 6th symbol as space - it is ignored totally to save some bytes and in the end we do not do the update of that field at all in the MERGE statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions