summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-05-10 17:22:45 +0200
committerGitHub <noreply@github.com>2023-05-10 17:22:45 +0200
commit6e32d1fa1dafd0c9cd9f93997ecebb26cd9a1b62 (patch)
tree7646d821bc72b65acbc620906fa98569f4901e37 /django
parentc494c6974dd0e7c5a43ea3e220b34641abc3ba29 (diff)
downloaddjango-6e32d1fa1dafd0c9cd9f93997ecebb26cd9a1b62.tar.gz
Fixed #34554 -- Fixed Reverse(Value(…)) crash on Oracle.
Diffstat (limited to 'django')
-rw-r--r--django/db/models/functions/text.py3
1 files changed, 2 insertions, 1 deletions
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):