Connecting with None values

Issue #33 closed
John Vandenberg
created an issue

cx_oracle requires user, password & dsn to be a string, or be NULL in C terms.

Typically external authentication is achieved using:

cx_Oracle.connect(user='/')

And a little unexpected, the following fails because dsn is None (Python) instead of NULL (C).

cx_Oracle.connect(user='/', dsn=None)

This fails in Connection_Connect when cxBuffer_FromObject is called with None, which raises TypeError.

See also https://bitbucket.org/zzzeek/sqlalchemy/issues/3705

Comments (1)

  1. Log in to comment