Skip to content

Sql Formatter doesn't handle JDBI/JDBC parameters well. #952

Closed
@dylanbaroody

Description

@dylanbaroody

When using JDBI, adding parameters to queries uses one of the following formats:

where user_id = :user_id

or

user_id in ( <user_ids> )

The included formatter doesn't handle either of these well:

WHERE user_id =:user_id

or

user_id IN ( 
    < user_ids >
)

In particular, the IN style statement breaks because a space is added between < and the word. Could a parameter to configure spaces between (, < and words be added?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions