Closed simara-svatopluk closed 1 year ago
I'm not sure we can do much about this on our side.
As far as I can tell, we pass a null
value and don't have a way to provide further type information.
But this related Stackoverflow question seems to indicate that you can resolve the issue on your side with a cast.
Thanks a lot!
I confirm, this works:
@Query(
"""
SELECT * FROM transactions
WHERE :vendor_id::text IS NULL OR vendor_id = :vendor_id
""")
Hello everyone,
this seems to be an edge case in edge case... conditions for the issue:
@Query
VendorId
)If any of conditions above isn't met, there is no issue... for H2/without Query/not custom type/not nullable/sending not null.
I have following code (Kotlin):
Table
transactions
have the columnvendor_id
nullable.converter for data class
VendorId
is registered inJdbcConfiguration
When I call
I get