Skip to content

outconverter doesn't work when the value is null #107

@lypch

Description

@lypch
  1. 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.

  2. 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)

  3. I have posed the same question in the following link.
    outconverter doesn't work when the value is Null python-cx_Oracle#640 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions