-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Closed
Copy link
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancementA general enhancement
Milestone
Description
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:
- Spring JDBC not correctly processing Postgresql ? operator [SPR-16511] #21054 Spring JDBC not correctly processing Postgresql ? operator
- Spring JDBC not correctly processing Postgresql ?| and ?& operator [SPR-15382] #19945 Spring JDBC not correctly processing Postgresql ?| and ?& operator
Referenced from: commits 11d1f05
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancementA general enhancement