From 6e32d1fa1dafd0c9cd9f93997ecebb26cd9a1b62 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 10 May 2023 17:22:45 +0200 Subject: =?UTF-8?q?Fixed=20#34554=20--=20Fixed=20Reverse(Value(=E2=80=A6))?= =?UTF-8?q?=20crash=20on=20Oracle.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- django/db/models/functions/text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'django') diff --git a/django/db/models/functions/text.py b/django/db/models/functions/text.py index 34421eb15d..fba2840c4b 100644 --- a/django/db/models/functions/text.py +++ b/django/db/models/functions/text.py @@ -257,7 +257,7 @@ class Reverse(Transform): def as_oracle(self, compiler, connection, **extra_context): # REVERSE in Oracle is undocumented and doesn't support multi-byte # strings. Use a special subquery instead. - return super().as_sql( + sql, params = super().as_sql( compiler, connection, template=( @@ -268,6 +268,7 @@ class Reverse(Transform): ), **extra_context, ) + return sql, params * 3 class Right(Left): -- cgit v1.2.1