Commit bc9d5827 authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog.buildSQLQuery: Avoid single-use local.

parent 5250346d
...@@ -2424,11 +2424,16 @@ class Catalog(Folder, ...@@ -2424,11 +2424,16 @@ class Catalog(Folder,
ignore_empty_string=1, only_group_columns=False, ignore_empty_string=1, only_group_columns=False,
limit=None, extra_column_list=(), limit=None, extra_column_list=(),
**kw): **kw):
query = self.buildEntireQuery(kw, query_table=query_table, return self.buildEntireQuery(
ignore_empty_string=ignore_empty_string, limit=limit, kw,
extra_column_list=extra_column_list) query_table=query_table,
result = query.asSQLExpression(self, only_group_columns).asSQLExpressionDict() ignore_empty_string=ignore_empty_string,
return result limit=limit,
extra_column_list=extra_column_list,
).asSQLExpression(
self,
only_group_columns,
).asSQLExpressionDict()
# Compatibililty SQL Sql # Compatibililty SQL Sql
buildSqlQuery = buildSQLQuery buildSqlQuery = buildSQLQuery
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment