Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1038

Named parameters not set in query v2.2.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 2.2.0
    • library
    • go 115.6
    • 1

    Description

      When running the following example code in the documents

      ```

      query := "SELECT x.* FROM `travel-sample` x WHERE x.`type`=$type LIMIT 10;"

      params := make(map[string]interface{}, 1)

      params["type"] = "hotel"

      rows, err := cluster.Query(query, &gocb.QueryOptions{NamedParameters: params})

      ```

      The `$type` parameter is not set in the query upon execution. 

      Attachments

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

        Activity

          People

            charles.dixon Charles Dixon
            lukekroon Luke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty