Skip to content

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

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions