From ddefc3fed1cf1f0d3fab455babbbc009b76e4196 Mon Sep 17 00:00:00 2001 From: Raphael Gaschignard Date: Tue, 19 Nov 2024 14:50:24 +1000 Subject: Fixed #35918 -- Added support for execute_sql to directly return row counts. --- django/db/models/sql/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'django/db/models/sql/constants.py') diff --git a/django/db/models/sql/constants.py b/django/db/models/sql/constants.py index fdfb2ea891..709405b0df 100644 --- a/django/db/models/sql/constants.py +++ b/django/db/models/sql/constants.py @@ -11,8 +11,10 @@ GET_ITERATOR_CHUNK_SIZE = 100 # How many results to expect from a cursor.execute call MULTI = "multi" SINGLE = "single" -CURSOR = "cursor" NO_RESULTS = "no results" +# Rather than returning results, returns: +CURSOR = "cursor" +ROW_COUNT = "row count" ORDER_DIR = { "ASC": ("ASC", "DESC"), -- cgit v1.3