Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
None
Description
Creating n1ql queries with place holder variables i.e. `$var` are not being replaced when provided with a Parameter in the query options.
This example does not work https://github.com/couchbase/couchbase-net-client/blob/master/tests/Couchbase.IntegrationTests/ClusterTests.cs#L35
The query that is passed to the server is just the unchanged statement : "SELECT x.* FROM `default` WHERE x.Type=$1" and the $1 is not replaced.
I have also observed the same behaviour for the parameters that are given names, for example having a statement with "...Type=$type..." and a QueryOption parameter with Parameter("type", "this") will also not replace the place holder.
(noticed against current master, commit ae9b0a419b73eaf72a4590a7f85a679ba5c06abc)