Skip to content

add skips for one_to_one tests #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Conversation

timgraham
Copy link
Collaborator

No description provided.

def execute_sql(self, result_type=MULTI):
cursor = Cursor()
cursor.rowcount = self.build_query([self.query.get_meta().pk]).delete()
return cursor

def check_query(self):
super().check_query()
if not self.single_alias:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

single_alias comes from compiler.SQLDeleteCompiler.

@timgraham timgraham requested a review from WaVEV July 11, 2024 18:14
@timgraham timgraham merged commit 6b18784 into mongodb:main Jul 12, 2024
3 checks passed
@timgraham timgraham deleted the one_to_one branch July 12, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants