typename argument in Cursor.var() · Issue #231 · oracle/python-cx_Oracle · GitHub
Skip to content

typename argument in Cursor.var() #231

Description

@doerwalter

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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