diff options
author | Jacob Walls <jwalls@element84.com> | 2023-04-10 16:30:08 -0400 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-04-11 05:56:47 +0200 |
commit | c3d7a71f836f7cfe8fa90dd9ae95b37b660d5aae (patch) | |
tree | e08196e7d6a875817129c37fbd9cdeab86a82640 /django | |
parent | 3b4728310a7a64f8fcc548163b0aa5f98a5c78f5 (diff) | |
download | django-c3d7a71f836f7cfe8fa90dd9ae95b37b660d5aae.tar.gz |
Fixed #34480 -- Fixed crash of annotations with Chr().
Diffstat (limited to 'django')
-rw-r--r-- | django/db/models/functions/text.py | 1 |
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( |