Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ZPsycopgDA getcursor() returns uninitialized connections if called from a separate thread

#155

Manually creating a thread and calling getcursor() from there returns a cursor on a connection that didn't receive the 'init' procedure (isolation level, encoding, typecasters).

Reported by zagy in https://github.com/psycopg/psycopg2/pull/2

For the moment the bug won't be fixed, at least not in the invasive way proposed above. An easy workaround is to explicitly call getconn().cursor() instead of getcursor().

If you are affected by this bug please add a comment, thank you.

Reported by Daniele Varrazzo · April 2nd, 2013 @ 12:15 AM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.