Skip to content

Question mark in native query #2551

Closed
Closed
@kubav182

Description

@kubav182

When working with jsonb type in postgres, we can use ? operator.

SELECT * FROM table WHERE (json_col->'jsonKey')::jsonb ? :param

In JDBC driver you can use escape sequence ??
In Hibernate you can use escape sequence \\?\\?

But what should I use in Spring Data JPA? I'm getting error during startup java.lang.IllegalArgumentException: Mixing of ? parameters and other forms like ?1 is not supported!

I'm using Spring Boot 2.4.5

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions