summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJacob Walls <jwalls@element84.com>2023-04-10 16:30:08 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-04-11 05:56:47 +0200
commitc3d7a71f836f7cfe8fa90dd9ae95b37b660d5aae (patch)
treee08196e7d6a875817129c37fbd9cdeab86a82640 /django
parent3b4728310a7a64f8fcc548163b0aa5f98a5c78f5 (diff)
downloaddjango-c3d7a71f836f7cfe8fa90dd9ae95b37b660d5aae.tar.gz
Fixed #34480 -- Fixed crash of annotations with Chr().
Diffstat (limited to 'django')
-rw-r--r--django/db/models/functions/text.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/functions/text.py b/django/db/models/functions/text.py
index 8715e86898..34421eb15d 100644
--- a/django/db/models/functions/text.py
+++ b/django/db/models/functions/text.py
@@ -42,6 +42,7 @@ class PostgreSQLSHAMixin:
class Chr(Transform):
function = "CHR"
lookup_name = "chr"
+ output_field = CharField()
def as_mysql(self, compiler, connection, **extra_context):
return super().as_sql(