server/querier.py
branchstable
changeset 3109 e7e1bb06b716
parent 2680 66472d85d548
child 3171 b10f0c1f3fe4
equal deleted inserted replaced
3108:aa43c0c22b98 3109:e7e1bb06b716
   606                 except UnknownEid:
   606                 except UnknownEid:
   607                     # we want queries such as "Any X WHERE X eid 9999"
   607                     # we want queries such as "Any X WHERE X eid 9999"
   608                     # return an empty result instead of raising UnknownEid
   608                     # return an empty result instead of raising UnknownEid
   609                     return empty_rset(session, rql, args)
   609                     return empty_rset(session, rql, args)
   610                 cachekey.append(etype)
   610                 cachekey.append(etype)
       
   611                 # ensure eid is correctly typed in args
       
   612                 args[key] = typed_eid(args[key])
   611             cachekey = tuple(cachekey)
   613             cachekey = tuple(cachekey)
   612         else:
   614         else:
   613             cachekey = rql
   615             cachekey = rql
   614         try:
   616         try:
   615             rqlst = self._rql_cache[cachekey]
   617             rqlst = self._rql_cache[cachekey]