Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed Sep 26, 2023
1 parent 12a8f33 commit 978f5ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ Example of a correlated subquery in the `SELECT`
Unions
""""""

Both ``UNION`` and ``UNION ALL`` are supported. ``UNION DISTINCT`` is synonomous with "UNION`` so |Brand| does not
Both ``UNION`` and ``UNION ALL`` are supported. ``UNION DISTINCT`` is synonymous with "UNION`` so |Brand| does not
provide a separate function for it. Unions require that queries have the same number of ``SELECT`` clauses so
trying to cast a unioned query to string will throw a ``SetOperationException`` if the column sizes are mismatched.

Expand Down
2 changes: 1 addition & 1 deletion pypika/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Dialects(Enum):
ORACLE = "oracle"
MSSQL = "mssql"
MYSQL = "mysql"
POSTGRESQL = "postgressql"
POSTGRESQL = "postgresql"
REDSHIFT = "redshift"
SQLLITE = "sqllite"
SNOWFLAKE = "snowflake"
Expand Down
4 changes: 2 additions & 2 deletions pypika/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,8 +1564,8 @@ def on_field(self, *fields: Any) -> QueryBuilder:

criterion = None
for field in fields:
consituent = Field(field, table=self.query._from[0]) == Field(field, table=self.item)
criterion = consituent if criterion is None else criterion & consituent
constituent = Field(field, table=self.query._from[0]) == Field(field, table=self.item)
criterion = constituent if criterion is None else criterion & constituent

self.query.do_join(JoinOn(self.item, self.how, criterion))
return self.query
Expand Down

0 comments on commit 978f5ae

Please sign in to comment.