async queries limit bug (#20468)

This commit is contained in:
AAfghahi 2022-06-22 16:21:34 -04:00 committed by GitHub
parent 9f9aae49c9
commit 2c16be42e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,9 @@ class ExecuteSqlCommand(BaseCommand):
self._execution_context.set_query(query)
rendered_query = self._sql_query_render.render(self._execution_context)
self._set_query_limit_if_required(rendered_query)
self._query_dao.update(
query, {"limit": self._execution_context.query.limit}
)
return self._sql_json_executor.execute(
self._execution_context, rendered_query, self._log_params
)