Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-984

Some N1QL query settings may not get set

    XMLWordPrintable

Details

    • 1
    • SDK28: Txn Loop/Rb,PfQueryColl, SDK32: QueryCollections, SDK30: Connect,Txns

    Description

      https://github.com/couchbase/couchbase-python-client/blob/master/couchbase/cluster.py#L194

              for k in self.VALID_OPTS:
                  v = args.get(k, None)
                  if v:
                      if k == 'adhoc':
                          query.adhoc = v
      

      If I want 'adhoc' to be False, then v = False and adhoc never gets set. The default value for 'adhoc' is set to True: https://github.com/couchbase/couchbase-python-client/blob/master/couchbase_core/n1ql.py#L124

      This will also affect any of the parameters that are bools or ints, and maybe others as well. Not just adhoc

      Attachments

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

        Activity

          People

            Ellis.Breen Ellis Breen
            korrigan.clark Korrigan Clark (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty