equal
deleted
inserted
replaced
390 union = self.union |
390 union = self.union |
391 # do we have to use a inputmap from a previous step ? If so disable |
391 # do we have to use a inputmap from a previous step ? If so disable |
392 # cachekey |
392 # cachekey |
393 if inputmap or self.plan.cache_key is None: |
393 if inputmap or self.plan.cache_key is None: |
394 cachekey = None |
394 cachekey = None |
395 # union may have been splited into subqueries, rebuild a cache key |
395 # union may have been splited into subqueries, in which case we can't |
|
396 # use plan.cache_key, rebuild a cache key |
396 elif isinstance(self.plan.cache_key, tuple): |
397 elif isinstance(self.plan.cache_key, tuple): |
397 cachekey = list(self.plan.cache_key) |
398 cachekey = list(self.plan.cache_key) |
398 cachekey[0] = union.as_string() |
399 cachekey[0] = union.as_string() |
399 cachekey = tuple(cachekey) |
400 cachekey = tuple(cachekey) |
400 else: |
401 else: |