Passing mode=None to cx_Oracle.connect() · Issue #293 · oracle/python-cx_Oracle (original) (raw)

https://cx-oracle.readthedocs.io/en/latest/module.html#cx_Oracle.Connection states that the default value for the mode parameter of cx_Oracle.connect is None. However when I do

db = cx_Oracle.connect("...", mode=None)

I get

TypeError: an integer is required (got type NoneType)

I guess that none of the constant listed in the documentation (SYSDBA, SYSASM, SYSOPER, SYSBKP, SYSDGD, SYSKMT or SYSRAC) gives me a "normal" connection, so a constant could be added for "normal" connection. But IMHO it would be better if mode=None was supported in the connect call.