olavloite / spanner-jdbc

JDBC Driver for Google Cloud Spanner
MIT License
38 stars 10 forks source link

INVALID_ARGUMENT: No parameter found for binding: p1 #98

Closed lascarayf closed 6 years ago

lascarayf commented 6 years ago

Hi, i have an exception when i use SELECT CASE expression.

@Query("SELECT CASE WHEN (n.accountId > :accountId) THEN true ELSE false END FROM Notification n ")
Boolean findNotifications(@Param("accountId") String accountId);
Caused by: nl.topicus.jdbc.shaded.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: No parameter found for binding: p1
    at nl.topicus.jdbc.shaded.io.grpc.Status.asRuntimeException(Status.java:526)
    ... 19 common frames omitted
olavloite commented 6 years ago

Fixed for version 1.0.14