1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

Fixed #34554 -- Fixed Reverse(Value(…)) crash on Oracle.

This commit is contained in:
Mariusz Felisiak
2023-05-10 17:22:45 +02:00
committed by GitHub
parent c494c6974d
commit 6e32d1fa1d
2 changed files with 11 additions and 7 deletions

View File

@@ -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):