oracle / python-oracledb

Python driver for Oracle Database conforming to the Python DB API 2.0 specification. This is the renamed, new major release of cx_Oracle
https://oracle.github.io/python-oracledb
Other
312 stars 61 forks source link

Var.outconverter() is not writable #360

Open leo-b opened 3 weeks ago

leo-b commented 3 weeks ago

Hi!

The latest oracledb documentation states that Variable.outconverter is a read-write attribute. https://python-oracledb.readthedocs.io/en/latest/api_manual/variable.html#Variable.outconverter

However this doesn't seem to be true:

v = cursor.var(oracledb.DB_TYPE_NUMBER)
v.outconverter = lambda x: x
# AttributeError: property 'outconverter' of 'Var' object has no setter

Is the setter property missing or is the documentation wrong?

Cheers, --leo

cjbj commented 3 weeks ago

We'll review; thanks.