Closed olavloite closed 6 years ago
@flascaray Definitely a bug which will be fixed. In the meantime the following work-around will probably work. Change the query into something like this:
SELECT ... FROM ... WHERE COALESCE(CAST(:positionId AS STRING), '')='' OR c.position.id = CAST(:positionId AS STRING)
Fixed in version 1.0.6.
From olavloite/spanner-hibernate#1:
This problem is in the handling of null values of parameters in the jdbc driver and not in the Hibernate dialect.