Commit b1d92322 authored by Vincent Pelletier's avatar Vincent Pelletier

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

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