Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
mShan0 committed Jun 4, 2024
1 parent 8d3f983 commit 1930f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mssql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ def _get_check_sql(self, model, schema_editor):
else:
query = Query(model=model)
if VERSION >= (5, 1):
where = query.build_where(self.check)
else:
where = query.build_where(self.condition)
else:
where = query.build_where(self.check)
compiler = query.get_compiler(connection=schema_editor.connection)
sql, params = where.as_sql(compiler, schema_editor.connection)
if schema_editor.connection.vendor == 'microsoft':
Expand Down

0 comments on commit 1930f4a

Please sign in to comment.