From 5cffcdf5e458143bbba7e45a11973f21cd256900 Mon Sep 17 00:00:00 2001 From: Kevin Barbour Date: Fri, 22 Apr 2022 09:14:09 +0200 Subject: [PATCH] queryx: add note to ExecCAS docs relates to: #228 --- queryx.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/queryx.go b/queryx.go index 67043cc..36e8acc 100644 --- a/queryx.go +++ b/queryx.go @@ -236,6 +236,10 @@ func (q *Queryx) ExecRelease() error { // ExecCAS executes the Lightweight Transaction query, returns whether query was applied. // See: https://docs.scylladb.com/using-scylla/lwt/ for more details. +// +// When using Cassandra it may be necessary to use NoSkipMetadata in order to obtain an +// accurate "applied" value. See the documentation of NoSkipMetaData method on this page +// for more details. func (q *Queryx) ExecCAS() (applied bool, err error) { q.NoSkipMetadata() iter := q.Iter().StructOnly()