Details
-
Bug
-
Resolution: Fixed
-
Test Blocker
-
3.0.3
-
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 |
133446,13 | PYCBC-984: pass through all N1QL params, invert is_prepared to adhoc | master | couchbase-python-client | Status: MERGED | +2 | +1 |
133447,6 | PYCBC-984: correctly filter Query args for valid options | master | couchbase-python-client | Status: ABANDONED | -1 | 0 |