﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35585	`Query.has_results` calls `.exists()` with wrong argument	Flavio Curella		"The `has_results` method of the `Query` class (in `django/db/models/sql/query.py`), passes the `using` argument to the `exists()` method:

{{{
    def has_results(self, using):
        q = self.exists(using)
        compiler = q.get_compiler(using=using)
        return compiler.has_results()
}}}


but the signature of the `exists` method does not accept an argument to select the db connection. It only accepts an argument to limit the rows it should fetch:

{{{
    def exists(self, limit=True):
        # ... snip ...
}}}"	Cleanup/optimization	new	Database layer (models, ORM)	dev	Normal			Flavio Curella	Unreviewed	1	0	0	0	0	0
