-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed as not planned
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix
Description
I have a repository method:
@org.springframework.data.jpa.repository.Query(
nativeQuery = true,
value = """
SELECT cast(:productIds as TEXT) IS NULL
"""
)
boolean sanityCheck(Set<Long> productIds);
When I pass in an empty set, the empty set is converted to null somewhere before it makes it to the DB (Postgres):
Query:["SELECT cast((null) as TEXT) IS NULL
"], Params:[()]
Is this behavior documented anywhere? I don't understand why this would be expected or desirable.
Metadata
Metadata
Assignees
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix