Closed kberezin-nshl closed 1 year ago
Sorry about the confusion. It was a miscommunication on the release note that DML returning statements were still under development. We anticipate it would be coming soon. Thanks for filling this issue.
UPD: v1.5.4, still the same error....
org.jboss.resteasy.spi.UnhandledException: org.jdbi.v3.core.statement.UnableToExecuteStatementException: com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory$JdbcSqlExceptionImpl: INVALID_ARGUMENT: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: THEN RETURN is not supported [at 1:68]
...id, data) VALUES (@p1, PARSE_JSON(@p2)) THEN RETURN data
^ - Statement: 'INSERT INTO foo(id, data) VALUES (@p1, PARSE_JSON(@p2)) THEN RETURN data'
cc @xinjiacs @gauravpurohit06
Is there a timeline on when this will be implemented? Super keen to use this at work to reduce the chance of a race condition when fetching and updating data.
Sorry about the confusion, it's the communication error on our side. "THEN RETURN" support is expected to be in the following emulator release. Thanks for your patience.
v15.5 is out. You can try the THEN RETURN
feature again.
FYI: https://github.com/GoogleCloudPlatform/cloud-spanner-emulator/releases/tag/v1.5.5
It works, thanks!
Release notes for emulator v1.5.1 say that DML returning statements are now supported, however I am still getting an error if I use it: