1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed #34480 -- Fixed crash of annotations with Chr().

This commit is contained in:
Jacob Walls
2023-04-10 16:30:08 -04:00
committed by Mariusz Felisiak
parent 3b4728310a
commit c3d7a71f83
2 changed files with 12 additions and 1 deletions

View File

@@ -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(