Skip to content

NamedParameterJdbcTemplate fails on PostgreSQL array [SPR-16340] #20887

Closed as not planned
@spring-projects-issues

Description

@spring-projects-issues

Nikita Khateev opened SPR-16340 and commented

There is a possible bug while parsing SQL query for PostgreSQL DB. If you will try to execute a named query like this:

UPDATE table SET name = array[:param]

The name of param will be parsed as 'param]', which is incorrect. However, if you will try to execute this query:

UPDATE table SET name = array[:param ]

It will parse param name correctly.


Affects: 5.0.2

Issue Links:

Referenced from: pull request #1637

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: dataIssues in data modules (jdbc, orm, oxm, tx)status: supersededAn issue that has been superseded by anothertype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions