typename argument in Cursor.var() · Issue #231 · oracle/python-cx_Oracle (original) (raw)
I would like to be able to pass a value None
for the typename
argument of Cursor.var()
. However cx_Oracle
raises the following exception in this case:
DatabaseError: DPI-1046: parameter name cannot be a NULL pointer
I would have expected this to behave exactly like when typename
wasn't passed at all.
This means that currenly I have to do the following:
if typename is None: var = cursor.var(t) else: var = cursor.var(t, typename=typename)
which is inelegant.