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

        For Gerrit Dashboard: PYCBC-984
        # Subject Branch Project Status CR V

        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