Skip to content

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

Closed as not planned

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:

Activity

  1. added
    in: data
    type: enhancement
    on Jan 11, 2019
  2. removed this from the 6.x Backlog milestone on Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: datatype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions