server/ssplanner.py
branchstable
changeset 8127 96d343a5e01b
parent 8020 52e250f307b6
child 8562 0d2fb4604265
child 8853 f61755c05c89
equal deleted inserted replaced
8126:a4d8064bf393 8127:96d343a5e01b
   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: