I’m executing a N1ql query that has a “returning” clause, but I can’t seem to find a way to access that data using the Java client. Is there something special that you have to do?
A RETURNING *
clause should produce rows()
, just like a SELECT
so that should work out of the box.
Hi @simonbasle - that is what I thought too, but that does not seem to be the case. Try it for yourself.
what is the query you are trying to execute, and what is the SDK version you are using?
@vibelifeinc I did try, and there’s even a test for RETURNING clause: couchbase-java-client/src/integration/java/com/couchbase/client/java/N1qlDmlTest.java at 9800c35badbbcffbd5a20038e3f4bb8af85005f2 · couchbase/couchbase-java-client · GitHub
That’s why I need to know if you’re doing anything more specific, or maybe using an older version of the SDK that might explain why returned data isn’t visible to you…
I got it to work. Thanks.