Skip to content

Commit

Permalink
Merge 63fa83a into c46a5d9
Browse files Browse the repository at this point in the history
  • Loading branch information
shadchin committed Jun 15, 2021
2 parents c46a5d9 + 63fa83a commit 52848e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pypika/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1530,10 +1530,7 @@ def on_field(self, *fields: Any) -> QueryBuilder:

def using(self, *fields: Any) -> QueryBuilder:
if not fields:
raise JoinException(
"Parameter 'fields' is required when joining with "
"a using clause but was not supplied.".format(type=self.type_label)
)
raise JoinException("Parameter 'fields' is required when joining with a using clause but was not supplied.")

self.query.do_join(JoinUsing(self.item, self.how, [Field(field) for field in fields]))
return self.query
Expand Down

0 comments on commit 52848e3

Please sign in to comment.