mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Flush an object with NULL values in LOB fields leads to an error, OCI8 #6952
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eisberg on GitHub (Mar 22, 2022).
Bug Report
Summary
When working with optional fields in entity that have a BLOB type (blob, clob, text, ..., etc.), we get a warning:
Deprecated: OCILob::writeTemporary(): Passing null to parameter #1 ($data) of type string is deprecated in vendor/doctrine/dbal/src/Driver/OCI8/Statement.php on line 76The error occurs when working with Oracle (OCI8)
How to reproduce
Example:
Expected behavior
Optional fields are expected to allow NULL values
@derrabus commented on GitHub (Apr 25, 2022):
Sorry for not getting back to you that long. Unfortunately, we don't really have good test coverage for Oracle, mainly because nobody maintains it. Would you be willing to work on a fix for the issue?
@eisberg commented on GitHub (Apr 25, 2022):
Ok, I'll try to fix it