Skip to content

Spring JDBC not correctly processing Postgresql ?-contained operator [SPR-13582] #18159

Closed

Description

@spring-projects-issues

Artur Geraschenko opened SPR-13582 and commented

Postgresql has many functional operators such as ? (for example JSONB operators).

Spring JDBC processing for this case is not correct. When running the following SQL:

SELECT '["1","2","3"]'::jsonb ? '4'

... I see exceptions like this:

class org.springframework.dao.InvalidDataAccessApiUsageException
SQL [SELECT '["1","2","3"]'::jsonb ? '4']: given 1 parameters but expected 0

In pgjdbc this bug was fixed in 2014 (pgjdbc/pgjdbc#227).


Affects: 4.2.2

Reference URL: #892

Issue Links:

Referenced from: commits 11d1f05

Activity

  1. spring-projects-issues commented on Oct 17, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Artur Geraschenko commented

    I fix it #892

  2. spring-projects-issues commented on Oct 18, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Artur Geraschenko commented

    Juergen, hello! I really want to get this fix in the near release, whether it is possible to speed up the adoption of the revisions?

  3. spring-projects-issues commented on Oct 26, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Rolling this into 4.2.3 now, to appear in the 4.2.3.BUILD-SNAPSHOT...

    Juergen

  4. added
    in: data
    type: enhancement
    on Jan 11, 2019
  5. added this to the 4.2.3 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: datatype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions