1
2009-10-04 Federico Di Gregorio <fog@initd.org>
5
* setup.py: applied patch from Christian Jacobsen to link to static
8
* lib/extras.py: added support for UUID arrays.
10
* psycopg/connection_int.c: applied patch from Richard Davies to avoid
11
deadlocks with multiple threads using the same connection.
13
2009-08-08 Federico Di Gregorio <fog@initd.org>
17
* psycopg/lobject_int.c: fixed problem with writing large data using
18
lo_write: apparently the large objects code does not like non-blocking
21
* setup.py: fixed version detection for PostgreSQL rc, as
22
suggested by Sok Ann Yap.
24
* ZPsycopgDA/db.py: applied serialization error retry from Brian
27
* Implemented connection.reset() method to reset the connection to
28
well-know default parameters. This is much faster than closing and
29
reopening the connection. (Suggested by a bug report by Glenn
32
* psycopg/cursor_type.c: unified size macro definitions in COPY TO
33
and COPY FROM operations: now the buffer for column names is 8192
34
bytes that should be enough even for very large tables.
36
2009-05-19 Federico Di Gregorio <fog@initd.org>
38
* Applied patch from Robert Munro to fix version check
41
2009-05-10 Federico Di Gregorio <fog@initd.org>
45
* lib/extras.py: fixed crash in fetchone() when prefetching using
48
* psycopg/cursor_ext.c: now raise correct exception when fetching
49
using a custom row factory results in an error.
51
* lib/extras.py: applied DictRow "diet" patch from Marko Kreen.
53
2009-04-21 Federico Di Gregorio <fog@initd.org>
55
* setup.py: applied patch from Elvis Pranskevichus to make
56
PostgreSQL version detection more robust.
58
2009-04-20 Federico Di Gregorio <fog@initd.org>
62
* psycopg/cursor_type.c: patch from Gangadharan to avoid double
63
free of the cursor when the connection that creates it is closed
64
implicitly by dealloc.
66
2009-04-19 Federico Di Gregorio <fog@initd.org>
68
* psycopg/connection_type.c: patch from Gangadharan to avoid double
69
free of the connection object when calling close() implicitly.
71
* psycopg/connection_type.c: patch from Marko Kreen to implement
72
get_parameter_status().
74
* psycopg/connection.*: exposed protocol_version and
75
server_version attributes on the connection object.
77
* lib/extras.py: patch from Marko Kreen to implement missing dict
80
2009-04-04 Federico Di Gregorio <fog@initd.org>
82
* connection_int.c(conn_notice_callback): removed all Python
83
calls because conn_notice_callback() can be called without a lock
84
on the GIL. Moved processing and cleanup of notices into their
85
own functions that are called while holding the GIL.
87
2009-04-01 Federico Di Gregorio <fog@initd.org>
89
* Applied patch from Menno Smits to fix failures in test_dates
90
when executed in older version of Python.
92
* Applied patch from Menno Smits to fix lobject test failures.
94
2009-03-08 Federico Di Gregorio <fog@initd.org>
96
* microprotocols.c: None is always adapted to NULL to avoid
97
errors when calling adapt on nested types without first checking
100
2009-03-02 Federico Di Gregorio <fog@initd.org>
102
* Applied modified patch from Karsten Hilbert to provide a
103
type-caster able to parse times with seconds in the time zone.
105
* Applied patch from Menno Smits to avoid problems with DictCursor
106
when the query is executed by a named cursor. Also added Menno's
107
tests and uniformed other DictCursor tests.
109
* psycopg/psycopgmodule.c: fixed unwanted exception when passing an
110
explicit None to register_type().
112
* psycopg/config.h: applied patch from Jason Erickson to build
113
with MSVC. Solaris version of isinf() is now a macro.
115
2009-02-27 Federico Di Gregorio <fog@initd.org>
117
* psycopg/config.h: added check to provide compatible isinf()
118
for Solaris (thanks to Jeremy Mason.)
120
2009-02-23 Federico Di Gregorio <fog@initd.org>
124
2009-02-17 James Henstridge <james@jamesh.id.au>
126
* psycopg/utils.c (psycopg_escape_string): same here.
128
* psycopg/adapter_binary.c (binary_escape): simplify PostgreSQL
131
* setup.py (psycopg_build_ext.finalize_options): use a single
132
define of the PostgreSQL version in a form that can easily be used
135
* tests/test_dates.py (DatetimeTests, mxDateTimeTests): full test
136
coverage for datetime and time strings with and without time zone
139
* psycopg/typecast_datetime.c (typecast_PYDATETIME_cast): adjust
140
to handle the changes in typecast_parse_time.
141
(typecast_PYTIME_cast): add support for time zone aware time
144
* psycopg/typecast_mxdatetime.c (typecast_MXDATE_cast): make sure
145
that values with time zones are correctly processed (even though
146
that means ignoring the time zone value).
147
(typecast_MXTIME_cast): same here.
149
* psycopg/typecast.c (typecast_parse_time): Update method to parse
150
second resolution timezone offsets.
152
* psycopg/typecast.c (typecast_parse_time): Fix up handling of
153
negative timezone offsets with a non-zero minutes field.
155
* tests/test_dates.py (DatetimeTests): Add tests for time zone
156
parsing. The test for HH:MM:SS time zones is disabled because we
157
don't currently support it.
159
2009-02-16 Federico Di Gregorio <fog@initd.org>
161
* FreeBSD now has round(). Modified config.h as suggested by
162
Jeroen Ruigrok van der Werven.
164
2009-02-06 Federico Di Gregorio <fog@initd.org>
166
* Applied patch by Markus Demleitner to make executemany() return
167
the sum of modified rows by executed statements or -1 if any one
168
statement returns it. This is still DBAPI-2.0 compliant.
170
2009-01-23 Federico Di Gregorio <fog@initd.org>
172
* Fixed problem mailed by Markus Demleitner about Python to
173
PostgreSQL conversions of "nan" and "inf" floats resulting in
174
backend errors. Added the new psycopg2.extensions.Float adapter
175
that correctly handle both values and unit tests. (The opposite
176
conversion was already working.)
178
2009-01-20 Federico Di Gregorio <fog@initd.org>
180
* Fixed problem reported by Lawrence Oluyede where
181
register_type() didn't work on connection and cursors
184
2009-01-10 Federico Di Gregorio <fog@initd.org>
186
* psycopg/cursor_type.c: cursor.isready() now raise an exception
187
when the libpq PQconsumeInput() call fails.
189
2008-12-04 Federico Di Gregorio <fog@initd.org>
191
* psycopg/lobject_type.c: fixed memory leak. The patch was kindly
192
sent from a psycopg user but I wrongly deleted the email so no
193
kudos (and I had to fix the problem by myself!)
195
2008-11-25 Federico Di Gregorio <fog@initd.org>
197
* psycopg/cursor_type.c: integrated patch from Alejandro Dubrovsky.
198
Note that the statically allocated buffer should probably go away
199
in favor of always allocating the buffer dinamically.
201
* psycopg/utils.c: modified patch from Alejandro Dubrovsky to
202
support quoted separators in COPY queries: now all the string
203
quoting code is in utils.c and the same function is used by
204
qstrings and everything else (like the COPY code.)
206
2008-09-24 Federico Di Gregorio <fog@initd.org>
208
* lib/extras.py: added inet support and related tests.
210
2008-09-23 James Henstridge <james@jamesh.id.au>
212
* psycopg/psycopg.h (NotSupportedError_doc): clean up
213
spelling/grammar a bit, using exception description from the PEP.
215
2008-09-23 Federico Di Gregorio <fog@initd.org>
217
* Applied patch from Brian Sutherland that fixes NULL
218
valus in UUID support.
220
2008-09-19 Federico Di Gregorio <fog@initd.org>
222
* lib/extras.py: added UUID support, modeled after the code
223
sent by Brian Sutherland.
1
225
2008-09-16 Federico Di Gregorio <fog@initd.org>