A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/oracle/python-cx_Oracle/issues/231 below:

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

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4