lcb_wait() crashes with C SDK 2.5.1 and server 4.0 Beta in the N1QL example

I’d suggest for the time being to manually encode the REST API parameters. This involves manually encoding the JSON parameters, however. The REST API can be found here:

http://docs.couchbase.com/4.0/n1ql/n1ql-rest-api/index.html

I’ll update the docs a bit later with an example of this.

The N1QLPARAMS API will likely be removed in a future release.