Closed mkmoisen closed 5 months ago
Thanks for the report and analysis.
I have pushed a patch that should correct this bug. If you are able to build from source you can verify that it works for you.
The patch has been included in version 2.0.1 which was just released.
@anthony-tuininga Sorry I missed your message. I just tried 2.0.1 and my regression tests are passing now. Thanks!
In 2.0 it is no longer possible to set an attribute on DbObject to NULL for a VARCHAR2.
This was possible in all previous versions of oracledb as well as cx_Oracle.
This bug was caused by the following change:
https://github.com/oracle/python-oracledb/commit/82112325eb65e99646ddecee0a264efad67198eb
The change assumes that the value is not null.
There needs to be a condition that checks if it is null and then avoids performing this max size check, for example:
2.0
Give your database version.
19C
Also run Python and show the output of:
And:
error
Cut and paste text showing the command you ran. No screenshots.
Here is the PLSQL to create the record:
Here is the python that creates an instance of the record type and set
BAZ
to null:Here is the error:
Yes, thick mode.
This tells us whether you are using the python-oracledb Thin or Thick mode.