1
2008-09-16 Federico Di Gregorio <fog@initd.org>
5
2008-07-26 Federico Di Gregorio <fog@initd.org>
7
* psycopg/connection_type.c: merged get_backend_pid() method
10
2008-07-23 James Henstridge <james@jamesh.id.au>
12
* psycopg/lobject_type.c (lobject_setup): use
13
FORMAT_CODE_PY_SSIZE_T in Dprintf() call for 64-bit compatibility
14
when using Python 2.5 or later.
15
(lobject_dealloc): same here.
17
2008-07-18 James Henstridge <james@jamesh.id.au>
19
* psycopg/adapter_qstring.c (qstring_traverse): add cyclic GC
20
traversal for quoted string adapters.
22
* psycopg/adapter_pboolean.c (pboolean_traverse): add cyclic GC
23
traversal for boolean adapters.
25
* psycopg/adapter_mxdatetime.c (mxdatetime_traverse): add cyclic
26
GC traversal for mxdatetime adapters.
28
* psycopg/adapter_datetime.c (pydatetime_traverse): add cyclic GC
29
traversal for datetime adapters.
31
2008-07-01 James Henstridge <james@jamesh.id.au>
33
* psycopg/adapter_binary.c (binary_traverse): add cyclic GC
34
traversal for binary adapters.
36
* psycopg/adapter_asis.c (asis_traverse): add cyclic GC traversal
39
* psycopg/adapter_list.c (list_traverse): add cyclic GC traversal
42
2008-05-28 James Henstridge <james@jamesh.id.au>
44
* psycopg/cursor_type.c (cursor_setup): incref before setting
45
attributes, to make things GC-safe.
47
* psycopg/cursor_int.c (curs_reset): make clearing of description
48
and casts attributes GC-safe.
50
* psycopg/typecast.c (typecast_traverse): implement cyclic GC
51
traversal for typecasters.
53
* psycopg/connection_type.c:
54
* psycopg/cursor_type.c: add support for cyclic GC traversal (no
55
support for clearing).
57
* psycopg/python.h: add definitions for Py_CLEAR() and Py_VISIT()
58
for compatibility with old versions of Python.
60
2008-06-28 Federico Di Gregorio <fog@initd.org>
62
* setup.py: fixed problem with spaces in pg_config path.
64
2008-05-27 Federico Di Gregorio <fog@initd.org>
66
* psycopg/pqpath.c: better error checks in _pq_copy_in_v3 to
67
avoid calling blocking libpq functions when the connection to
68
the server has been broken
70
2008-05-19 Federico Di Gregorio <fog@initd.org>
72
* psycopg/cursor_type.c: fixed memory leak in .executemany(); on
73
error "iter" was not dec'reffed.
75
2008-05-06 James Henstridge <james@jamesh.id.au>
77
* psycopg/lobject.h (lobjectObject): remove "mode" struct member,
80
* psycopg/lobject_*.c: replace uses of the closed struct member,
81
and change the Python level attribute to a getset.
83
* psycopg/lobject.h (lobjectObject): remove the closed member,
84
since "fd < 0" gives us the same information. Reorder the struct
85
members for better packing.
87
* psycopg/lobject*: const'ify the code.
89
* tests/test_lobject.py (LargeObjectTests): add more tests,
90
including behaviour on closed lobjects and stale lobjects.
92
* psycopg/lobject_type.c (psyco_lobj_close): don't mark the
93
connection closed here because it is done by
94
lobject_close_locked().
96
* psycopg/lobject_int.c (lobject_open): mark objects as not closed
97
if we successfully open them.
98
(lobject_close_locked): mark the lobject closed here.
99
(lobject_export): ensure we are in a transaction, since
100
lo_export() issues multiple queries.
102
* psycopg/lobject_type.c (lobject_setup): make lobjects start closed.
104
2008-05-05 James Henstridge <james@jamesh.id.au>
106
* psycopg/lobject.h: don't export the lobjectType symbol.
108
2008-05-05 Federico Di Gregorio <fog@initd.org>
110
* Fixed sun build problem by adding "sun" to config.h checks.
112
2008-05-05 James Henstridge <james@jamesh.id.au>
114
* psycopg/pqpath.c (pq_complete_error): get rid of double free
115
error in case when pgres is NULL.
117
* tests/test_lobject.py: add some basic tests for large object
120
* psycopg/lobject*.[ch]: port the large object code to work with
121
current psycopg code.
123
2006-09-01 Federico Di Gregorio <fog@initd.org>
125
* psycopg/connection_type.c: merged in double mutex destroy patch
126
from Joerg Sonnenberger.
128
* Implemented large objects support.
130
* psycopg/connection_int.c: removed increment of self->mark,
131
now it is done directly in pqpath.c to make sure even the
132
large object support gets it.
134
* Starting 2.1 development.
136
2008-04-21 James Henstridge <james@jamesh.id.au>
138
* tests/test_quote.py (QuotingTestCase.test_unicode): If the
139
server encoding is not UTF8, skip the unicode test and emit a
142
2008-04-21 Jorgen Austvik <Jorgen.Austvik@sun.com>
144
* tests/*.py: use the DSN constructed in tests/__init__.py.
146
* tests/__init__.py: allow setting the host, port and user for the
147
DSN used by the tests through the environment.
1
149
2008-03-17 Federico Di Gregorio <fog@initd.org>