Description
Hi,
While upgrading the C SDK on the playground from 3.1.0 to 3.2.0, I found that one of the examples on positional parameters does not work anymore.
I tested it locally on my machine as well & get the error
$ g++ -Wall -g test.cc -lcouchbase -pthread -o code -std=c++11
$ ./code
LCB_ERR_INVALID_ARGUMENT (203)
The code is attached.
The code works fine on the playground running 3.1.0 & also for the other SDKs.
Has something changed in the SDK update that is causing this issue?
This is a duplicate of the linked issue and has already been resolved. The fix is planned to be included in the 3.2.1 release of LCB.
However, please note that we are introducing a new function with a slightly different behavior. With the fix, the behavior of the original lcb_cmdquery_positional_param() will work as it previously did, but it is being deprecated. The new lcb_cmdquery_positional_params() is preferred (notice the plural form), and will allow all of the positional params to be specified in one call.
For more details:
https://issues.couchbase.com/browse/CCBC-1429