Re: [cx-oracle-users] Segmentation fault with custom cursor
Brought to you by:
atuining
|
From: Anthony T. <an...@co...> - 2004-09-01 21:29:34
|
Ok, I should have looked at this a little more closely a little sooner,
such as before I released 4.1 beta1 :-) The problem with your code is
that you need to pass the connection through to the constructor of the
cursor. Failing to do so does in fact yield a segfault which I have
fixed and that fix will be included in 4.1 final when it is released. If
you have any further questions, fire away. :-)
Walter Dörwald wrote:
> I'm having problems with implementing custom cursors.
> A minimal failing example is this:
>
> from cx_Oracle import *
>
> class Cursor2(Cursor):
> pass
>
> class Connection2(Connection):
> def cursor(self):
> return Cursor2()
>
> db = Connection2("...")
> c = db.cursor()
>
> Executing this gives me a Segmentation fault. I'm on Linux using
> cx_Oracle 4.0.1 with Anthony's patch for the NVARCHAR/UTF16 problem.
>
> Bye,
> Walter Dörwald
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> cx-oracle-users mailing list
> cx-...@li...
> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users
--
Anthony Tuininga
an...@co...
Computronix
Distinctive Software. Real People.
Suite 200, 10216 - 124 Street NW
Edmonton, AB, Canada T5N 4A3
Phone: (780) 454-3700
Fax: (780) 454-3838
http://www.computronix.com
|