Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2335

QueryOptions Parameters not replacing placeholders

    XMLWordPrintable

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)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            will.broadbelt Will Broadbelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty