185 results (but not the results themselves) may be cached using this key. |
185 results (but not the results themselves) may be cached using this key. |
186 """ |
186 """ |
187 if self._need_sql_create: |
187 if self._need_sql_create: |
188 return [] |
188 return [] |
189 assert dbg_st_search(self.uri, union, varmap, args, cachekey) |
189 assert dbg_st_search(self.uri, union, varmap, args, cachekey) |
190 sql, query_args = self.rqlsqlgen.generate(union, args) |
190 sql, qargs, cbs = self.rqlsqlgen.generate(union, args) |
191 args = self.sqladapter.merge_args(args, query_args) |
191 args = self.sqladapter.merge_args(args, qargs) |
192 results = self.sqladapter.process_result(self.doexec(session, sql, args)) |
192 cursor = self.doexec(session, sql, args) |
|
193 results = self.sqladapter.process_result(cursor, cbs) |
193 assert dbg_results(results) |
194 assert dbg_results(results) |
194 return results |
195 return results |
195 |
196 |
196 def local_add_entity(self, session, entity): |
197 def local_add_entity(self, session, entity): |
197 """insert the entity in the local database. |
198 """insert the entity in the local database. |