Commit 21097e48 authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog.Query.ComplexQuery: Raise on unexpected named argument.

parent a22a103b
......@@ -70,6 +70,8 @@ class ComplexQuery(Query):
assert self.logical_operator in ('and', 'or', 'not'), self.logical_operator
unknown_column_dict = kw.pop('unknown_column_dict', {})
self.from_expression = unknown_column_dict.pop('from_expression', None)
if kw:
raise TypeError('Unknown named arguments: %r' % (kw.keys(), ))
query_list = []
append = query_list.append
extend = query_list.extend
......
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