~psycopg/psycopg/2.0.x

Viewing all changes in revision 350.

  • Committer: James Henstridge
  • Date: 2008-05-06 09:04:26 UTC
  • Revision ID: james@jamesh.id.au-20080506090426-be63y4i8zkya3wf1
        * tests/test_lobject.py (LargeObjectTests): add more tests,
        including behaviour on closed lobjects and stale lobjects.

        * psycopg/lobject_type.c (psyco_lobj_close): don't mark the
        connection closed here because it is done by
        lobject_close_locked().

        * psycopg/lobject_int.c (lobject_open): mark objects as not closed
        if we successfully open them.
        (lobject_close_locked): mark the lobject closed here.
        (lobject_export): ensure we are in a transaction, since
        lo_export() issues multiple queries.

        * psycopg/lobject_type.c (lobject_setup): make lobjects start closed.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: