def test_ignore_index_primary(self):
        with CaptureLastQuery() as cap:
            list(Author.objects.filter(name__gt='').ignore_index('PRIMARY'))
        assert cap.query in ('IGNORE INDEX (`PRIMARY`)')
        assert 'PRIMARY' not in used_indexes(cap.query)
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_models.py/QueryHintTests.test_ignore_index_primary/swapped operands of `in`