#34544: models.TextField with =None filter throws Error for Oracle
-------------------------------------+-------------------------------------
Reporter: Michael D. Smith | Owner: Jatin-tec
Type: Bug | Status: closed
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: Oracle isnull lob | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Michael D. Smith):
unfortunately, we are on python 3.11 and cx-Oracle won't run. But its
reproducible at the db level from the generated query:
{{{
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.17.0.0.0
SQL> SELECT "CLOBBUGAPP_MYTILE"."ID", "CLOBBUGAPP_MYTILE"."NAME",
"CLOBBUGAPP_MYTILE"."METADATA" FROM "CLOBBUGAPP_MYTILE" WHERE
DBMS_LOB.SUBSTR("CLOBBUGAPP_MYTILE"."METADATA") IS NULL
2 ;
ERROR:
ORA-06502: PL/SQL: numeric or value error: character string buffer too
small
ORA-06512: at line 1
no rows selected
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34544#comment:10>
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/01070187f1d02511-96f2dd6a-3c70-4414-8d54-592ba1366e6c-000000%40eu-central-1.amazonses.com.