#34544: models.TextField with =None filter throws Error for Oracle
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
msmitherdc |
Type: Bug | Status: new
Component: Database | Version: 4.2
layer (models, ORM) |
Severity: Normal | Keywords: Oracle isnull lob
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Model contains
somefield = models.TextField(
blank=True, null=True
)
At 4.1.9:
{{{
print(MyModel.objects.filter(somefield=None).only('id').query)
}}}
{{{
SELECT "TNAME_MYMODEL"."ID" FROM "TNAME_MYMODEL" WHERE
"TNAME_MYMODEL"."SOMEFIELD" IS NULL
}}}
works
At 4.2.0:
{{{
print(MyModel.objects.filter(somefield=None).only('id').query)
}}}
{{{
SELECT "TNAME_MYMODEL"."ID" FROM "TNAME_MYMODEL" WHERE
DBMS_LOB.SUBSTR("TNAME_MYMODEL"."SOMEFIELD") IS NULL
DatabaseError: ORA-06502: PL/SQL: numeric or value error: character string
buffer too small
ORA-06512: at line 1
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34544>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070187ee101d8e-857440e5-8f66-46c6-8e6b-96fa24c2acfc-000000%40eu-central-1.amazonses.com.