Skip to content

BaseJdbcLogger.removeBreakingWhitespace strips whitespace in inline parameter constants #459

@szgabsz91

Description

@szgabsz91

If you have whitespace between quotation marks or apostrophes, it gets replaced with one space and thus the logged SQL statement becomes deceptive as it isn't the same that gets executed.

For example during logging

SELECT x FROM y WHERE z = '        ';

will become

SELECT x FROM y WHERE z = ' ';

The method could be modified to use a regular expression that leaves such whitespace intact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions