Skip to content

Commit

Permalink
fixed .on_null and .on_not_null had to be last criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
circulon committed Oct 24, 2024
1 parent 8a66a07 commit e033bfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/masoniteorm/query/grammars/BaseGrammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ def process_joins(self, qmark=False):
on_string += f"{keyword} {self._table_column_string(clause.column1)} {clause.equality} {self._table_column_string(clause.column2)} "
else:
if clause.value_type == "NULL":
sql_string = self.where_null_string()
sql_string = f"{self.where_null_string()} "
on_string += sql_string.format(
keyword=keyword,
column=self.process_column(clause.column),
)
elif clause.value_type == "NOT NULL":
sql_string = self.where_not_null_string()
sql_string = f"{self.where_not_null_string()} "
on_string += sql_string.format(
keyword=keyword,
column=self.process_column(clause.column),
Expand Down

0 comments on commit e033bfd

Please sign in to comment.