Skip to content

NamedParameterJdbcTemplate doesn't support postgresql dollar quoting $$ [SPR-16512] #21055

@spring-projects-issues

Description

@spring-projects-issues

RJ opened SPR-16512 and commented

When trying to use valid postgresql dollar quoting syntax, NamedParameterJDBCTemplate thinks that the dollarquote is a named param and fails b/c no value is given.

A query like:

select * from a where a.col1 = $ranS58$value$ranS58$;

throws the error:

org.springframework.dao.InvalidDataAccessApiUsageException: No value supplied for the SQL parameter 'value$ranS58$':

Affects: 4.3.14

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions