[Zope-DB] Can't get DCOracle2 to work with Python in Zope

Chris Withers chrisw at nipltd.com
Wed Nov 5 09:26:57 EST 2003


Bo M. Maryniuck wrote:

> def useDco2():
>     db = self.zdbc._v_database_connection.db
>     db.cursor.execute('select "foo" from dual')
> 
>     return db.fetchall()

bear in mind that this won't work once the thread pool stuff has landed, and 
trying to do something similar will probably land you in a lot of deep doo-doo...

Chris




More information about the Zope-DB mailing list