Skip to content

prepare_for_logs reduces multiple spaces to single space in embedded parameters  #15

@Barbez95

Description

@Barbez95

Hi! I've tried to upgrade to last released version 0.7.2, but the behaviour is still present.

The query template file "test_query.sql.erb" has the following content:
SELECT * FROM my_table WHERE my_string_field = <%= quote @my_string_value %>

Calling prepared_for_logs function
SqlQuery.new('test_query', my_string_value: 'My string value').prepared_for_logs

returns the following query
"SELECT * FROM my_table WHERE my_string_field = 'My string value'"
instead of
"SELECT * FROM my_table WHERE my_string_field = 'My string value'"

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