mirror of
https://github.com/django/django.git
synced 2025-08-22 19:44:44 +00:00
Fixed #33257 -- Fixed Case() and ExpressionWrapper() with decimal values on SQLite.
This commit is contained in:
parent
4f8c7fd9d9
commit
1a5023883b
3 changed files with 18 additions and 2 deletions
|
@ -933,7 +933,7 @@ class ExpressionList(Func):
|
|||
return self.as_sql(compiler, connection, **extra_context)
|
||||
|
||||
|
||||
class ExpressionWrapper(Expression):
|
||||
class ExpressionWrapper(SQLiteNumericMixin, Expression):
|
||||
"""
|
||||
An expression that can wrap another expression so that it can provide
|
||||
extra context to the inner expression, such as the output_field.
|
||||
|
@ -1032,7 +1032,7 @@ class When(Expression):
|
|||
return cols
|
||||
|
||||
|
||||
class Case(Expression):
|
||||
class Case(SQLiteNumericMixin, Expression):
|
||||
"""
|
||||
An SQL searched CASE expression:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue