Hi,
When I update an atomic counter with n1ql, the document becomes unusual. It throws the following error when trying to increase via SDK. I used update query explained in How to update atomic counter with n1ql?
Error:
LCB_DELTA_BADVAL: The value requested to be incremented is not stored as a number
When I did exactly
- Updated an existing atomic counter with
"update myBucket use keys "keyName" set myBucket=newNumber"
- Tried to increase the document in PHP SDK
$bucket->counter('keyName', 1)