On 2006-0728 08:06:07, Mario Frasca wrote:
> open database connection cx. [...]
> of the module by taking cx.__class__.__module__
>
> for a cx_Oracle database connection I get the string '__builtin__'
>
> any hints?
I found the problem... to solve it I had to modify the sources, not
much, but still...
http://docs.python.org/ext/dnt-type-methods.html states:
char *tp_name; /* For printing, in format "<module>.<name>" */
but
mario@loki:~/cx_Oracle-4.1$ grep tp_name Connection.c
"OracleConnection", // tp_name
modifying it to "cx_Oracle.OracleConnection" solves the problem.
I filed a bug report on the sourceforge cx_Oracle project, hope that is
the correct place.
regards, thanks,
Mario Frasca
--
il melo fa la mela
il pero fa la pera
il fico fa eccezione
Peppe Barra
|