~psycopg/psycopg/2.0.x

« back to all changes in this revision

Viewing changes to ChangeLog

  • Committer: Federico Di Gregorio
  • Date: 2004-12-10 10:34:57 UTC
  • Revision ID: fog-1b2e9ebeaa5d76bd7e4a9dc5eb779afb4076f236
async fixes and better connection/cursor management.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
2004-12-10  Federico Di Gregorio  <fog@debian.org>
 
2
 
 
3
        * psycopg/cursor_type.c: now *all* write or async accesses to the
 
4
        connection object are arbitrated using the connection lock.
 
5
        
 
6
        * psycopg/cursor_type.c (psyco_curs_isready): now we reset the
 
7
        current async cursor if it is ready, to allow other cursors to
 
8
        .execute() without raising the "transaction in progress" error.
 
9
 
 
10
        * psycopg/pqpath.c (pq_is_busy): gained status of high-level
 
11
        function with its own blocking and locking.
 
12
 
 
13
        * psycopg/cursor.h (EXC_IF_CURS_CLOSED): also checks the
 
14
        connection (a closed connection implies a closed cursor.)
 
15
 
 
16
        * psycopg/cursor_type.c: cursor's connection is correctly
 
17
        INCREFfed and DECREFfed.
 
18
 
 
19
        * psycopg/connection_type.c: removed the cursors list from the
 
20
        connection object. It is not necessary anymore for the connection
 
21
        to know about the cursors and the reference counting will keep the
 
22
        connection alive (but possibly closed) until all cursors are
 
23
        garbage collected.
 
24
 
1
25
2004-11-20  Federico Di Gregorio  <fog@initd.org>
2
26
 
3
27
        * psycopg/cursor_type.c (_mogrify): ported %% fix from 1.1.15. 
19
43
        tuples are filled using PyTuple_SET_ITEM while extended types
20
44
        (created via row_factory) are filled using PySequence_SetItem.
21
45
        
22
 
        * psycopg/cursor_type.c: change cursor attribute name from
 
46
        * psycopg/cursor_type.c: changed cursor attribute name from
23
47
        tuple_factory to row_factory.
24
48
 
25
49
2004-10-14  Federico Di Gregorio  <fog@debian.org>