outconverter doesn't work when the value is null · Issue #107 · oracle/python-oracledb (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
- Describe your new request in detail
I have a requirement to get data from the database through cx_oracle convert. and during the fetch data, if the value of the Number field is None, it needs to be converted to -1.
I want to use outconverter attribute of the Variable. but I found if the value is None, the outconverter isn't fired.
it's very useful in practice, please enhance it in the new version. thanks a lot. - Give supporting information about tools and operating systems. Give relevant product version numbers
platform.platform: Windows-10-10.0.19045-SP0
sys.maxsize > 2**32: True
platform.python_version: 3.8.10
cx_Oracle.version: 8.3.0
cx_Oracle.clientversion: (12, 1, 0, 2, 0) - I have posed the same question in the following link.
outconverter doesn't work when the value is Null python-cx_Oracle#640 (comment)