diff options
| author | Raphael Gaschignard <raphael@rtpg.co> | 2024-11-19 14:50:24 +1000 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-03 15:07:02 +0100 |
| commit | ddefc3fed1cf1f0d3fab455babbbc009b76e4196 (patch) | |
| tree | 0e6084422b038e819a825370334fc6da2a55bb7c /django/db/models/sql/constants.py | |
| parent | d97cacc2aedf948f7c557d0231e3b410905678b2 (diff) | |
Fixed #35918 -- Added support for execute_sql to directly return row counts.
Diffstat (limited to 'django/db/models/sql/constants.py')
| -rw-r--r-- | django/db/models/sql/constants.py | 4 |
1 files changed, 3 insertions, 1 deletions
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"), |
