~psycopg/psycopg/2.0.x

153 by Federico Di Gregorio
Fixed problem with "fractionary" time zones (Closes: #78).
1
2005-12-11  Federico Di Gregorio  <fog@initd.org>
2
3
	* psycopg/typecast.c (typecast_parse_time): cz limit in the while
4
	loop is 6, not 5. This solve the problem with "fractionary" time zones
5
	and fixes #78. 
6
152 by Federico Di Gregorio
Better DictCursor.
7
2005-12-06  Federico Di Gregorio  <fog@initd.org>
8
9
	* lib/extras.py: added .callproc() to DictCursor as suggested
10
	by Philip Semanchuk.
11
150 by Federico Di Gregorio
Added aync.txt to distribution.
12
2005-11-29  Federico Di Gregorio  <fog@initd.org>
13
14
	* MANIFEST.in: added docs/async.txt. (Closes: #75)
15
149 by Federico Di Gregorio
Slightly more readable setup.cfg.
16
2005-11-26  Daniele Varrazzo  <daniele.varrazzo@gmail.com>
17
18
	* psycopg/psycopgmodule.c: fixed exceptions refcount.
19
20
	* Fixed lots of doctrings and added Epydoc-generated docs support.
146 by Daniele Varrazzo
* psycopg/psycopgmodule.c: fixed exceptions refcount.
21
143 by Federico Di Gregorio
Added sandbox stuff to the repository.
22
2005-11-24  Federico Di Gregorio  <fog@initd.org>
23
24
	* sandbox: added all the test and creash-me files to the repository.
25
26
	* psycopg/typecast.c (typecast_dealloc): now directly calls
27
	PyObject_Del to avoid to segfault.
28
140 by Federico Di Gregorio
Fixed problem in microseconds conversion.
29
2005-11-20  Federico Di Gregorio  <fog@initd.org>
30
31
	* psycopg/typecast.c: fixed problem with microseconds conversion by
32
	applying slightly modified patch from Ronnie Mackay.
33
138 by Federico Di Gregorio
extensions.rst is shaping up!
34
2005-11-19  Federico Di Gregorio  <fog@initd.org>
35
139 by Federico Di Gregorio
In extensions.py: COMMITED -> COMMITTED. (Closes: #73)
36
	* lib/extensions.py: COMMITED -> COMMITTED. (Closes: #73)
140 by Federico Di Gregorio
Fixed problem in microseconds conversion.
37
138 by Federico Di Gregorio
extensions.rst is shaping up!
38
	* doc/extensions.rst: included Daniele's work after minor cosmetic changes
39
	like using the new constants instead of numbers for transaction isolation
40
	levels.
41
136 by Federico Di Gregorio
Fixed ZPsycopgDA connection leak.
42
2005-11-17  Federico Di Gregorio  <fog@initd.org>
43
44
	* ZPsycopgDA/pool.py: fixed connections leak by using the new name
45
	(PersistentConnectionPool) for the old connection pool class.
46
130 by Federico Di Gregorio
Better fix for py2exe and related tools.
47
2005-11-16  Federico Di Gregorio  <fog@initd.org>
48
132 by Federico Di Gregorio
Preparing release 2.0 beta 6.
49
	* Preparing release 2.0 beta 6.
134 by Federico Di Gregorio
Definitely fixed date and time adapting problems (for mx too!)
50
	
51
	* psycopg/adapter_mxdatetime.c: fixed all problems with mx conversions.
52
	
53
	* psycopg/typecast.c: now the timezone is set correctly even if there
54
	are no microseconds and/or the offset is 0;
55
56
	* examples/encoding.py: fixed example by using python utf8 encoding for
57
	the whole file.
132 by Federico Di Gregorio
Preparing release 2.0 beta 6.
58
130 by Federico Di Gregorio
Better fix for py2exe and related tools.
59
	* lib/__init__.py: very nice hack from Harald Armin Massa to allow
60
	py2exe and similar tools to do their work without problems.
61
129 by Federico Di Gregorio
Does not crash on importing needed modules. (Closes: #32)
62
2005-11-15  Federico Di Gregorio  <fog@initd.org>
63
64
	* psycopg/psycopgmodule.c: now bails out with correct exception when one
65
	of the needed modules can't be imported (should fix #32.)
66
128 by Federico Di Gregorio
New time/date locale-safe typecasting code.
67
2005-11-14  Federico Di Gregorio  <fog@initd.org>
68
69
	* psycopg/typecast.c: added typecast_parse_date and typecast_parse_time
70
	functions to do locale-safe date/time parsing. This would probably also
71
	speed-up psycopg a little bit.
72
127 by Federico Di Gregorio
Fixed problem with unitialized value in dsize.
73
2005-11-07  Federico Di Gregorio  <fog@initd.org>
74
75
	* psycopg/pqpath.c: fixed problem with uninitialized value (all this was
76
	started by replacing calloc() calls with PyMem_Malloc().)
77
126 by Federico Di Gregorio
Converted typecast class to new-style and implemented much better compare method.
78
2005-11-04  Federico Di Gregorio  <fog@initd.org>
79
80
	* psycopg/typecast.c: a lot of changes:
81
	  - made typecast a new-style type
82
	  - removed coerce code and implemented the richcompare protocol that
83
	    allows to compare objects of different types
84
	  - much better __cmp__ method that allows to compare two typecast
85
	    objects and returns True if any two of the mapped oids match
86
	  - any object that can be used as an int works as right-hand operand
87
	    in __cmp__ operations 
125 by Federico Di Gregorio
Small changes to interval parsing.
88
89
	* psycopg/typecast_datetime.c: now typecast_PYINTERVAL_cast limit the
90
	scan to 'len' characters in the string (should fix #65.)
91
92
2005-11-03  Federico Di Gregorio  <fog@initd.org>
93
94
	* Applied patch from Daniele Varazzo to enable Decimal on Python
124 by Federico Di Gregorio
Run-time check for Decimal on Python 2.3.
95
	2.3 when the module is available (run-time check, nice.)
96
	
125 by Federico Di Gregorio
Small changes to interval parsing.
97
2005-10-26  Federico Di Gregorio  <fog@initd.org>
122 by Federico Di Gregorio
SUSE addition to setup.cfg.
98
99
	* setup.cfg: added include_dirs line for SUSE 9.3.
100
121 by Federico Di Gregorio
named cursors are working.
101
2005-10-22  Federico Di Gregorio  <fog@initd.org>
120 by Federico Di Gregorio
Implemented named cursors.
102
103
	* psycopg/cursor_type.c: added support for named cursors:
104
	  - .fetchXXX() methods now execute a FETCH if the cursor is named
105
	  - .execute() executes a DECLARE if the cursor is named
106
	  - .execute() fails if a named cursor is used in autocommit
107
	  - .executemany() can't be called on named cursors
108
	  - .scroll() executes a MOVE if the cursor is named
109
	  - .close() executes a CLOSE if the cursor is named
110
	  Also, a "transaction mark" was added to both the connection and the
111
	  cursor and an exception is raised when using a named cursor unless the
112
	  two marks correspond.
113
114
	* psycopg/connection_int.c: snprintf->PyOS_snprintf.
115
116
	* psycopg/psycopgmodule.c: snprintf->PyOS_snprintf.
117
118
	* psycopg/cursor_type.c: changed self->query type from C string to
119
	PyObject* to better manage queries in named cursors.
120
121
	* psycopg/psycopgmodule.c: cleaned up exception names (now the errors
122
	is printed as psycopg2.Error and not as the confusing
123
	psycopg2._psycopg.Error.)
124
119 by Federico Di Gregorio
Various pool changes.
125
2005-10-20  Federico Di Gregorio  <fog@initd.org>
126
127
	* lib/pool.py: renamed ThreadedConnectionPool to PersistentConnectionPool
128
	and added a connection pool that allows multiple connections per thread
129
	as ThreadedConnectionPool (courtesy of Daniele Varrazzo.)
130
116 by Federico Di Gregorio
Releasing 2.0 beta 5.
131
2005-10-19  Federico Di Gregorio  <fog@initd.org>
132
133
	* Releasing 2.0 beta 5.
117 by Federico Di Gregorio
Releasing 2.0 beta 5.
134
	
135
	* psycopg/adapter_mxdatetime.c: reverted to old strftime method to format
136
	mx.DateTime objects; the new method didn't worked in some corner-cases.
137
	This makes impossible to have more than 2 decimal places for seconds but
138
	at least we get the time right every time.
116 by Federico Di Gregorio
Releasing 2.0 beta 5.
139
140
2005-10-18  Federico Di Gregorio  <fog@initd.org>
115 by Federico Di Gregorio
NOTIFY works again.
141
142
	* NOTIFY is back end working.
143
144
	* psycopg/connection_type.c: fixed problem with initialization of
145
	notifies list (also fixed small memory leak in connection dealloc.)
146
147
	* examples/notify.py: added NOTIFY example.
148
149
	* psycopg/cursor_type.c: added per-cursor type-casters dictionaries.
150
106 by Federico Di Gregorio
Working on TZ issues.
151
2005-10-18  Federico Di Gregorio  <fog@initd.org>
152
112 by Federico Di Gregorio
Better epydoc support.
153
	* psycopg/typecast.c: temporary fix to typecasting objects to return
154
	False for any comparaison except an integer in self.values (i.e., we
155
	don't raise an exception anymore on a coerce error.) Epydoc is now
156
	happy.
157
111 by Federico Di Gregorio
We should now build on ZETA.
158
	* psycopg/config.h: ZETA config.h patch from Charlie Clark.
159
110 by Federico Di Gregorio
Fixed typo in examples.
160
	* examples/threads.py: fixed small typo: psycopg -> psycopg2.
161
109 by Federico Di Gregorio
Code cleanup.
162
	* Big cleanup of unsigned chars to tame gcc 4.
163
164
	* Big cleanup of module names (i.e., psycopg2._psycopg everywhere.)
165
	
108 by Federico Di Gregorio
Added localtime_r for platforms not providing it.
166
	* psycopg/config.h: added fake localtime_r for platforms missing it
167
107 by Federico Di Gregorio
Default tzinfo_factory for cursors.
168
	* psycopg/cursor_type.c: cursors now have a FixedOffsetTimezone
169
	tzinfo_factory by default.
170
106 by Federico Di Gregorio
Working on TZ issues.
171
	* psycopg/adapter_datetime.c: added tzinfo argument to psycopg2.Time and
172
	psycopg2.Timestamp. Also now TimestampFromTicks sets the tzinfo object
173
	to psycopg2.tz.LOCAL.
174
175
2005-10-17  Federico Di Gregorio  <fog@initd.org>
176
177
	* psycopg/adapter_datetime.c: we now use localtime() instead of gmtime()
178
	to accound for the local time-zone in timestamps.
105 by Federico Di Gregorio
Applied patches to fix docstrings.
179
180
	* psycopg/connection_type.c: fixed docstring for .cursor().
181
182
	* psycopg/psycopgmodule.c: added useful docstring for .connect().
183
104 by Federico Di Gregorio
Last changes to .set_isolation_level().
184
2005-10-08  Federico Di Gregorio  <fog@initd.org>
185
186
	* psycopg/connection_type.c: isolation level upper bound set to 2.
101 by Federico Di Gregorio
Isolation level changes.
187
188
	* lib/psycopg1.py: explicitly set isolation level to 2 on .connect()
189
	to mimic psycopg 1 behaviour.
190
191
	* psycopg/connection_int.c: now set isolation level from
192
	default_transaction_isolation backend environment value.
193
194
	* psycopg/pqpath.c: removed serialization level 3: now everybody
195
	(except me) has to use the mnemonics defined in psycopg2.extensions.
196
197
	* lib/extensions.py: Added mnemonics for serialization levels.
198
100 by Federico Di Gregorio
Appliced callproc patch.
199
2005-10-02  Federico Di Gregorio  <fog@debian.org>
200
201
	* psycopg/cursor_type.c (psyco_curs_callproc): applied callproc
202
	patch from Matt Goodall (added a check on _psyco_curs_execute
203
	return value and substituted malloc/free with PyMem versions.) 
204
97 by Federico Di Gregorio
Docstrings fixes.
205
2005-10-01  Federico Di Gregorio  <fog@debian.org>
206
99 by Federico Di Gregorio
Fixed segfault in connection.set_client_encoding().
207
	* psycopg/connection_int.c: fixed segfault by moving PyErr_Format
208
	after GIL acquisition (closes: #50).
209
97 by Federico Di Gregorio
Docstrings fixes.
210
	* psycopg/connection_type.c: applied patch from Matt Goodall to
211
	fix some doc strings.
212
96 by Federico Di Gregorio
piro pool.py patch.
213
2005-09-23  Federico Di Gregorio  <fog@debian.org>
214
215
	* lib/pool.py: applied patch from piro to avoid the scan of the
216
	whole connection array on getconn().
217
94 by Federico Di Gregorio
Mingw and ZPsycopgDA fixes.
218
2005-09-12  Federico Di Gregorio  <fog@initd.org>
219
95 by Federico Di Gregorio
psycopg->psycopg2 fixes.
220
	* lib/pool.py: Applied psycopg->psycopg2 patch to from bug #35.
221
96 by Federico Di Gregorio
piro pool.py patch.
222
	* ZpsycopgDA/db.py: fixed problem with OperationalError that
223
	resulted in cryptic message to Zope users ("'OperationalError' is
224
	not defined".)
94 by Federico Di Gregorio
Mingw and ZPsycopgDA fixes.
225
	
92 by Federico Di Gregorio
Ported mxDateTime formatting changes from 1.1.x.
226
2005-08-23  Federico Di Gregorio  <fog@debian.org>
227
93 by Federico Di Gregorio
mingw fixes.
228
	* setup.py: applied patch from Daniele Varrazzo to avoid segfaults
229
	when compiling with migw for Python 2.4.x.
230
92 by Federico Di Gregorio
Ported mxDateTime formatting changes from 1.1.x.
231
	* psycopg/adapter_mxdatetime.c (mxdatetime_str): ported code from 1.1.x
232
	to convert mxDateTime object preserving the precision of fractional
233
	seconds.
234
91 by Federico Di Gregorio
psycopg -> psycopg2 name change.
235
2005-08-22  Federico Di Gregorio  <fog@debian.org>
236
237
	* ZPsycopgDA/*.py: psycopg -> psycopg2. 
238
239
	* setup.py: modified to install the module components under
240
	psycopg2 on windows too (thanks to Daniele Varrazzo.)
241
90 by Federico Di Gregorio
Small changes and fixes for RC 1.
242
2005-08-07  Federico Di Gregorio  <fog@debian.org>
243
244
	* psycopg/config.h: added __sun__ to the symbols checked for round()
245
87 by Federico Di Gregorio
1900 years shift fix.
246
2005-07-21  Federico Di Gregorio  <fog@debian.org>
247
248
	* psycopg/adapter_datetime.c (psyco_XXXFromTicks): fixed the 1900
249
	years offset reported by Jeroen van Dongen (see ticket #33). 
250
84 by Federico Di Gregorio
Preparing release 2.0b4.
251
2005-07-17  Federico Di Gregorio  <fog@debian.org>
252
86 by Federico Di Gregorio
Releasing 2.0b4.
253
	* Release 2.0 beta 4.
254
84 by Federico Di Gregorio
Preparing release 2.0b4.
255
	* lib/extras.py (DictConnection.cursor): added DictConnection to
256
	make easier to retrieve data in DictRows.
257
83 by Federico Di Gregorio
INTERVAL overflow fix.
258
2005-06-24  Federico Di Gregorio  <fog@initd.org>
259
260
	* psycopg/typecast_datetime.c (typecast_PYINTERVAL_cast): applied patch
261
	from Geert Jansen to fix interval bug due to overflow.
262
80 by Federico Di Gregorio
psycopg1 .dictfetchone() fixed (closes #27).
263
2005-06-18  Federico Di Gregorio  <fog@initd.org>
264
82 by Federico Di Gregorio
Added some clarifications and Mandrake example to setup.cfg.
265
	* setup.cfg: some clarifications and include_dirs example for Mandrake.
266
	
84 by Federico Di Gregorio
Preparing release 2.0b4.
267
	* ZPsycopgDA/DA.py: DTMLFile -> HTMLFile everywhere to fix zope
268
	cut&paste problems.
81 by Federico Di Gregorio
Fixed Zope cut'n'paste problems.
269
	
270
	* MANIFEST.in: added missing files to do bdist_rpm.
271
	
80 by Federico Di Gregorio
psycopg1 .dictfetchone() fixed (closes #27).
272
	* lib/psycopg1.py: fixed .dictfetchrow() to return None if fetchone()
273
	returns None instead of raising an exception.
274
	
275
	* ZPsycopgDA/icons: replaced corrupted icons with good ones. 
276
76 by Federico Di Gregorio
Don't segfault on empty queries anymore (closes: #24).
277
2005-06-13  Federico Di Gregorio  <fog@initd.org>
278
77 by Federico Di Gregorio
Fixed connection parameters.
279
	* psycopg/psycopgmodule.c (psyco_connect): changed the port keyword
280
	parameter type to int (instead of string); this should fix #23.
281
	
84 by Federico Di Gregorio
Preparing release 2.0b4.
282
	* psycopg/cursor_type.c (_psyco_curs_execute): now checks for
283
	empty queries and raise a ProgrammingError if appropriate (closes:
284
	#24).
76 by Federico Di Gregorio
Don't segfault on empty queries anymore (closes: #24).
285
	
286
	* setup.py: psycopg module renamed to psycopg2.
287
74 by Federico Di Gregorio
Fixed .execute() segfault.
288
2005-06-02  Federico Di Gregorio  <fog@debian.org>
289
290
	* psycopg/cursor_type.c (_psyco_curs_execute): fixed segfault when
291
	not passing string or unicode to .execute().
292
75 by Federico Di Gregorio
TimestampFromTicks fix.
293
2005-06-01  Federico Di Gregorio  <fog@debian.org>
294
295
	* examples/fetch.py: added example about using DECLARE CURSOR.
296
297
	* psycopg/adapter_datetime.c (psyco_TimestampFromTicks): "Hmmm,
298
	looks like someone forgot that C expects months to start counting
299
	from 0, but the Python date routines start counting from 1." That
300
	was me: fixed.
301
73 by Federico Di Gregorio
Fixed unicode query conversion segfault.
302
2005-05-31  Federico Di Gregorio  <fog@debian.org>
303
304
	* psycopg/cursor_type.c (_psyco_curs_execute): if a
305
	UnicodeEncodeError is raised during the converion of a unicode
306
	query we let it propagate insead of segfaulting.
307
	
72 by Federico Di Gregorio
Regression tests fixes.
308
2005-5-27  Federico Di Gregorio,  <fog@lana.initd.org>
309
310
	* tests/types_basic.py: fixed float and binary tests.
311
68 by Federico Di Gregorio
ZPsycopgDA work.
312
2005-05-26  Federico Di Gregorio  <fog@debian.org>
313
69 by Federico Di Gregorio
About to release.
314
	* Release 2.0b3.
315
68 by Federico Di Gregorio
ZPsycopgDA work.
316
	* ZPsycopgDA/db.py (DB.convert_description): isolated description
317
	conversion (and fixed the conversion as per #18).
318
319
	* ZPsycopgDA/DA.py: fixed again; this time Zope should work for
320
	real. :/  Also fixed the type-casters (psycopg 2 added the extra
321
	cursor parameter) as reported in #18.
322
323
	* psycopg/psycopgmodule.c (init_psycopg): fixed Python 2.2 build. 
324
65 by Federico Di Gregorio
Little cursor fix.
325
2005-05-19  Federico Di Gregorio  <fog@debian.org>
326
66 by Federico Di Gregorio
Extra DictRow methods.
327
	* Release 2.0b2.
328
	
329
	* lib/extras.py (DictRow): Some extra methods for DictRow.
330
65 by Federico Di Gregorio
Little cursor fix.
331
	* psycopg/cursor_type.c (_psyco_curs_execute): added explict check
332
	to avoid using None as bound variables (very importand for cursor
333
	subclasses calling cursor.execute(self, query, None).
334
62 by Federico Di Gregorio
setup.py improvements.
335
2005-05-18  Federico Di Gregorio  <fog@debian.org>
336
63 by Federico Di Gregorio
ZPsycopgDA version check fix.
337
	* ZPsycopgDA/DA.py (ALLOWED_PSYCOPG_VERSIONS): updated to work
338
	with 2.0b2 only (will support only the exact version untill final
339
	2.0 release.)
340
62 by Federico Di Gregorio
setup.py improvements.
341
	* setup.py: Applied combined patch from Daniele Varrazzo and Jason
342
	Erickson to build on win32 using MSVC or mingw.
343
61 by Federico Di Gregorio
Fixed wrong refcnt on None.
344
2005-05-15  Federico Di Gregorio  <fog@debian.org>
345
346
	* psycopg/microprotocols.c (microprotocols_adapt): fixed memory
64 by Federico Di Gregorio
Preparing release 2.0b2.
347
	leak on None as suggested by gh (closes: #16).
61 by Federico Di Gregorio
Fixed wrong refcnt on None.
348
60 by Federico Di Gregorio
DictRow fixes.
349
2005-05-10  Federico Di Gregorio  <fog@debian.org>
350
351
	* lib/extras.py (DictRow): we now save a reference to the index
352
	itself and not to the cursor to avoid problems while accessing
353
	DictRow objects after reusing the cursor for a different query
354
	(using  Kevin Jacobs db_row would be much better but DictRow is
355
	just an example, right?)
356
55 by Federico Di Gregorio
Applied .executemany() iterator patch.
357
2005-05-09  Federico Di Gregorio  <fog@debian.org>
358
59 by Federico Di Gregorio
Release 2.0 beta 1.
359
	* Release 2.0 beta 1.
360
57 by Federico Di Gregorio
Various fixes.
361
	* psycopg/typecast_datetime.c (typecast_PYDATETIME_cast): fixed a
362
	typo (pyDateTimeModuleP->pyDateTimeTypeP) that was causing errors
363
	with infinite datetime values.
364
365
	* psycopg/adapter_binary.c (binary_str): Py_XINCREF on the buffer
366
	that can be NULL on error.
367
56 by Federico Di Gregorio
chunk/buffer patch applied.
368
	* psycopg/typecast_binary.*: applied slightly modified
369
	chunk/buffer object patch to allow round-trip of buffer objects
370
	(BYTEA columns.) 
371
55 by Federico Di Gregorio
Applied .executemany() iterator patch.
372
	* psycopg/cursor_type.c (psyco_curs_executemany): applied slightly
373
	fixed patch from wrobell to allow iterators in .executemany().
374
54 by Federico Di Gregorio
SGA-related changes.
375
2005-04-18  Federico Di Gregorio  <fog@debian.org>
376
377
	* MANIFEST.in: included debian directory.
378
50 by Federico Di Gregorio
mingw patch from Daniele Varazzo.
379
2005-04-10  Federico Di Gregorio  <fog@debian.org>
380
52 by Federico Di Gregorio
Array support completed (closes: #1).
381
	* psycopg/adapter_list.*: added list adapter. 
382
383
	* psycopg/microprotocols.c (microprotocol_getquoted): moved
384
	_mogrify_getquoted into utility function in the microprotocols
385
	library.
386
51 by Federico Di Gregorio
Better error message about missing headers (Closes: #9).
387
	* setup.py: Added extensive error message on missing datetime
388
	headers.
389
50 by Federico Di Gregorio
mingw patch from Daniele Varazzo.
390
	* Applied mingw patch from Daniele Varazzo. 
391
48 by Federico Di Gregorio
psycopg1 compatibility module.
392
2005-04-03  Federico Di Gregorio  <fog@debian.org>
393
49 by Federico Di Gregorio
psycopg1 compatibility module (added autocommit.)
394
	* lib/psycopg1.py (connection.autocommit): added compatibility
395
	.autocommit() method.
396
48 by Federico Di Gregorio
psycopg1 compatibility module.
397
	* psycopg/psycopgmodule.c (psyco_connect): factory ->
398
	connection_factory.
399
400
	* lib/psycopg1.py: added psycopg 1.1.x compatibility module.
401
46 by Federico Di Gregorio
GIL-related fixes.
402
2005-03-29  Federico Di Gregorio  <fog@debian.org>
403
53 by Federico Di Gregorio
Little improvements to DictRow.
404
	* Applied patch to fix tuple count.
405
	
46 by Federico Di Gregorio
GIL-related fixes.
406
	* psycopg/pqpath.c (pq_is_busy): Staring from bug report from
407
	Jason Erickson fixed segfaults due to calling Python function
408
	without holding the GIL.
409
 
45 by Federico Di Gregorio
Solid tokenization code.
410
2005-03-24  Federico Di Gregorio  <fog@debian.org>
411
48 by Federico Di Gregorio
psycopg1 compatibility module.
412
	* psycopg/adapter_binary.c (binary_escape): propagated Andrea's
413
	fix to binary adapter.
414
415
	* psycopg/adapter_qstring.c (qstring_quote): applied patch from
416
	Andrea Arcangeli to fix allocation failures (>4Gb) on 64 bit
417
	arches.
418
45 by Federico Di Gregorio
Solid tokenization code.
419
	* psycopg/typecast_array.c (typecast_array_tokenize): much better
420
	tokenization code.
421
41 by Federico Di Gregorio
Array support works, at least for INTEGERS.
422
2005-03-23  Federico Di Gregorio  <fog@debian.org>
423
424
	* psycopg/typecast_basic.c: all the basic casters now respect the
425
	passed string length.
426
427
	* psycopg/typecast.c (typecast_cast): set curs->caster to self
428
	during the type-casting.
429
430
	* psycopg/cursor_type.c: added "typecaster" attribute to the
431
	cursor (this is safe, cursors can't be shared among threads and
432
	the attribute is RO.)
433
40 by Federico Di Gregorio
Starting array work.
434
2005-03-22  Federico Di Gregorio  <fog@debian.org>
435
436
	* psycopg/typecast_array.c: added some more structure to implement
437
	array typecasting.
438
439
	* scripts/buildtypes.py: new version to include array data.
440
43 by Federico Di Gregorio
Array tokenization seems working.
441
2005-03-15  Federico Di Gregorio  <fog@debian.org>
442
443
	* lib/extensions.py: Added AsIs import.
444
37 by Federico Di Gregorio
Optimizations to type casting (in preparation to array support.)
445
2005-03-12  Federico Di Gregorio  <fog@debian.org>
446
43 by Federico Di Gregorio
Array tokenization seems working.
447
	* psycopg/cursor.h: removed "qattr", not used anymore and added
448
	"cast", holding the typecaster currently in use.
449
450
	* Release 1.99.13.
451
38 by Federico Di Gregorio
First try at .executemany() implementation.
452
	* psycopg/cursor_type.c (psyco_curs_executemany): implemented as a
453
	wrapper to extract python arguments and then call
454
	_psyco_curs_execute().
455
456
	* psycopg/cursor_type.c (_psyco_curs_execute): splitted away
457
	python argument parsing from the real execute code, to later allow
458
	for .executemany().
459
37 by Federico Di Gregorio
Optimizations to type casting (in preparation to array support.)
460
	* psycopg/cursor_type.c (_psyco_curs_buildrow_fill): modified to
461
	call typecast_cast().
38 by Federico Di Gregorio
First try at .executemany() implementation.
462
	
37 by Federico Di Gregorio
Optimizations to type casting (in preparation to array support.)
463
	* psycopg/typecast.c (typecast_call/typecast_cast): modified
464
	typecast_call to use the new typecast_cast that avoids one string
465
	conversion on every cast.
466
34 by Federico Di Gregorio
Fixed small problem and re-release.
467
2005-03-04  Federico Di Gregorio  <fog@initd.org>
468
37 by Federico Di Gregorio
Optimizations to type casting (in preparation to array support.)
469
	* Release 1.99.12.1.
34 by Federico Di Gregorio
Fixed small problem and re-release.
470
471
	* psycopg/adapter_asis.c (asis_str): changed call to PyObject_Repr
472
	to PyObject_Str to avoid problems with long integers.
473
37 by Federico Di Gregorio
Optimizations to type casting (in preparation to array support.)
474
2005-03-03  Federico Di Gregorio  <fog@debian.org>
475
476
	* psycopg/typecast.h: added array casting functions.
477
478
	* scripts/maketypes.sh: does not generate pgversion.h anymore. 
479
480
	* Updated all examples for the release.
481
26 by Federico Di Gregorio
COPY FROM works.
482
2005-03-02  Federico Di Gregorio  <fog@debian.org>
483
37 by Federico Di Gregorio
Optimizations to type casting (in preparation to array support.)
484
	* Release 1.99.12.
34 by Federico Di Gregorio
Fixed small problem and re-release.
485
	
30 by Federico Di Gregorio
Added __conform__ to all adapters.
486
	* psycopg/adapter_*.c: added __conform__ to all adapters.
487
	
28 by Federico Di Gregorio
Preparing release 1.99.12.
488
	* psycopg/adapter_qstring.c (qstring_quote): we now use
489
	PyString_AsStringAndSize() instead of strlen() that would stop at
490
	the first embedded \0 (but note that libpq quoting function will
491
	truncate the string anyway!)
492
	
27 by Federico Di Gregorio
Finished COPY TO/COPY FROM implementation.
493
	* COPY TO implemented using both old and new (v3) protocol.
494
495
	* psycopg/pqpath.c (_pq_copy_out_v3): implemented and working.
496
497
	* psycopg/cursor_type.c (psyco_curs_copy_to): added cursor object
498
	interface for copy_to.
499
26 by Federico Di Gregorio
COPY FROM works.
500
	* COPY FROM implemented using both old and new (v3) protocol.
501
502
	* psycopg/config.h (Dprintf): declaration for asprintf is gone.
503
504
	* psycopg/pqpath.c (_pq_copy_in_v3): implemented.
505
23 by Federico Di Gregorio
Adaptation fixes (a lot.)
506
2005-03-01  Federico Di Gregorio  <fog@debian.org>
507
26 by Federico Di Gregorio
COPY FROM works.
508
	* setup.py: now we generate a slighly more verbose version string
509
	that embeds some of the compile options, to facilitate users' bug
510
	reports.
511
25 by Federico Di Gregorio
asprintf() removal.
512
	* psycopg/cursor_type.c (psyco_curs_copy_from): we now use
513
	PyOS_snprintf instead of asprintf. On some platforms this can be
514
	bad (win32).. if that's your case, get a better platform. :/
515
23 by Federico Di Gregorio
Adaptation fixes (a lot.)
516
	* psycopg/microprotocols.c (microprotocols_adapt): fixed small
517
	typo that made adaptation using __conform__ impossible.
518
519
2005-02-28  Federico Di Gregorio  <fog@debian.org>
520
521
	* lib/extras.py: removed AsIs adapter (now a built-in); also
522
	removed prepare() method from the adapters that don't use it to
523
	avoid an extra method call at mogrification time.
524
525
	* psycopg/psycopgmodule.c (psyco_adapters_init): added
526
	initialization of the AsIs adapter (adapts int, long, float and
527
	*wonder* None!)
528
529
	* psycopg/cursor_type.c (_mogrify_getquoted): reorganized the code
530
	to adapt and then call .getquoted() to obtain the quoted data into
531
	this new function.
532
19 by Federico Di Gregorio
Fixed example/myfirstrecipe.py
533
2005-2-27  Federico Di Gregorio  <fog@initd.org>
534
535
	* examples/myfirstrecipe.py: fixed adapter registration. 
536
18 by Federico Di Gregorio
MacOS X build patch.
537
2005-2-7  Federico Di Gregorio  <fog@initd.org>
538
539
	* setup.py: added patch by Valentino Volonghi to build on MacOS X.
540
16 by Federico Di Gregorio
The Andrea's-bunch-o-fixes.
541
2005-01-29  Federico Di Gregorio  <fog@debian.org>
542
543
	* psycopg/pqpath.c (_pq_fetch_tuples): fixed scale-related
544
	segfault (*fourth* mail from Andrea. Another couple like this and
545
	psycopg 2 will exit alpha at warp speed.)
546
	
547
	* psycopg/pqpath.c (pq_fetch): _pq_copy_out_3 -> _pq_copy_out_v3
548
	(second and third mail from Andrea. :/)
549
550
	* psycopg/cursor_type.c (_psyco_curs_has_write_check): added check
551
	on .write() attribute, fixed compilation problems (first mail from
552
	Andrea Arcangeli.)
553
15 by Federico Di Gregorio
License changes. Fixes. Added register_adapter().
554
2005-01-20  Federico Di Gregorio  <fog@debian.org>
555
556
	* lib/extensions.py (register_adapter): added register_adapter
557
	function, exported ISQLQuote in psycopg.extensions.
558
559
2005-01-18  Federico Di Gregorio  <fog@debian.org>
560
561
	* psycopg/pqpath.c (_pq_fetch_tuples): ported scale/precision fix
562
	from psycopg 1.1.
563
564
	* LICENSE: detailed licensing information. Re-licensed some parts
565
	under BSD-like to allow integration is pysqlite.
566
567
2005-01-13  Federico Di Gregorio  <fog@debian.org>
568
26 by Federico Di Gregorio
COPY FROM works.
569
	* ZPsycopgDA/db.py (DB.query
570
	): ported ZPsycopgDA connection fix
15 by Federico Di Gregorio
License changes. Fixes. Added register_adapter().
571
	from psycopg 1.1.
572
573
	* lib/*.py: added pydoc-friendly messages.
574
575
2005-01-12  Federico Di Gregorio  <fog@debian.org>
576
577
	* Added debian directory (thanks to W. Borgert who sent initial
578
	patch based on cdbs.)
579
12 by Federico Di Gregorio
rowcount fix.
580
2004-12-20  Federico Di Gregorio  <fog@debian.org>
581
582
	* psycopg/pqpath.c (pq_execute): removed multiple calls to
583
	pq_fetch in syncronous DBAPI compatibility mode to solve rowcount
584
	problem.
585
9 by Federico Di Gregorio
Renaming types.
586
2004-12-14  Federico Di Gregorio  <fog@debian.org>
587
11 by Federico Di Gregorio
Lets release 1.99.11.
588
	* Mm.. release 1.99.11.
589
10 by Federico Di Gregorio
isready/prefetch fix.
590
	* psycopg/cursor_type.c (_psyco_curs_prefetch): fixed bug in
591
	interaction between the .isready() method and
592
	_psyco_curs_prefetch: isready now store away the pgres but leave
593
	prefetch do its work.
594
9 by Federico Di Gregorio
Renaming types.
595
	* psycopg/*.c: changed the names of most of the psycopg's built-in
596
	types to replect their position in the psycopg._psycopg module.
597
8 by Federico Di Gregorio
async fixes and better connection/cursor management.
598
2004-12-10  Federico Di Gregorio  <fog@debian.org>
599
600
	* psycopg/cursor_type.c: now *all* write or async accesses to the
601
	connection object are arbitrated using the connection lock.
602
	
603
	* psycopg/cursor_type.c (psyco_curs_isready): now we reset the
604
	current async cursor if it is ready, to allow other cursors to
605
	.execute() without raising the "transaction in progress" error.
606
607
	* psycopg/pqpath.c (pq_is_busy): gained status of high-level
608
	function with its own blocking and locking.
609
610
	* psycopg/cursor.h (EXC_IF_CURS_CLOSED): also checks the
611
	connection (a closed connection implies a closed cursor.)
612
613
	* psycopg/cursor_type.c: cursor's connection is correctly
614
	INCREFfed and DECREFfed.
615
616
	* psycopg/connection_type.c: removed the cursors list from the
617
	connection object. It is not necessary anymore for the connection
618
	to know about the cursors and the reference counting will keep the
619
	connection alive (but possibly closed) until all cursors are
620
	garbage collected.
621
7 by Federico Di Gregorio
First fixed to the async core.
622
2004-11-20  Federico Di Gregorio  <fog@initd.org>
623
624
	* psycopg/cursor_type.c (_mogrify): ported %% fix from 1.1.15. 
625
626
2004-11-20  Federico Di Gregorio  <fog@initd.org>
627
628
	* psycopg/cursor_type.c (psyco_curs_execute): added check to raise an
629
	exception if a cursor tries to .execute() while an async query is
630
	already in execution froma  different cursor. 
631
5 by Federico Di Gregorio
DictCursor fixes again.
632
2004-11-20  Federico Di Gregorio  <fog@debian.org>
633
634
	* psycopg/connection_type.c (psyco_conn_cursor): renamed 'cursor'
635
	argument to 'cursor_factory'.
636
4 by Federico Di Gregorio
Fixes to row_factory.
637
2004-11-19  Federico Di Gregorio  <fog@debian.org>
638
639
	* psycopg/cursor_type.c (_psyco_curs_buildrow_fill): now standard
640
	tuples are filled using PyTuple_SET_ITEM while extended types
641
	(created via row_factory) are filled using PySequence_SetItem.
642
	
8 by Federico Di Gregorio
async fixes and better connection/cursor management.
643
	* psycopg/cursor_type.c: changed cursor attribute name from
4 by Federico Di Gregorio
Fixes to row_factory.
644
	tuple_factory to row_factory.
645
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
646
2004-10-14  Federico Di Gregorio  <fog@debian.org>
647
648
	* psycopg/cursor_type.c (_psyco_curs_buildrow_fill): now we use
649
	PySequence_SetItem to avoid problems with containers created from
650
	cursor's .tuple_factory attribute.
651
652
	* lib/extras.py (DictCursor.execute): fixed stupid bug with cursor
653
	setting self.tuplefactory instead of self.tuple_factory.
654
655
2004-10-02  Federico Di Gregorio  <fog@debian.org>
656
657
	* Release 1.99.10.
658
	
659
	* psycopg/cursor_type.c (_psyco_curs_buildrow_*): unified normal
660
	and factory code into the _psyco_curs_buildrow_fill function; no
661
	more memory leaks here. 
662
663
	* psycopg/config.h (round): added check for __FreeBSD__ (that
664
	should be defined when compiling with gcc, I hope.)
665
666
	* setup.py: removed a lot of code now in setup.cfg.
667
668
2004-09-24  Federico Di Gregorio  <fog@debian.org>
669
670
	* psycopg/cursor_type.c (cursor_dealloc): fixed small memory leak
671
	due to missing disposal of self->pgres.
672
673
2004-9-14  Federico Di Gregorio  <fog@initd.org>
674
675
	*  examples/dialtone.py: Added adapt() example by Valentino
676
	Volonghi.
677
678
2004-09-14  Federico Di Gregorio  <fog@debian.org>
679
680
	* psycopg/microprotocols.c (microprotocols_adapt): lots of changes
681
	to the microprotocols layer (it is not micro anymore);
682
	implementing almost all the PEP 246. The adapter registry is now
683
	indexed by (type, protocol) and not by type alone.
684
685
2004-09-13  Federico Di Gregorio  <fog@debian.org>
686
687
	* psycopg/cursor_type.c (_mogrify): and qattr is gone.
688
689
2004-09-05  Federico Di Gregorio  <fog@debian.org>
690
691
	* Release 1.99.9 (or, the "twisting by the pool" release).
692
693
	* psycopg/pqpath.c (_pq_fetch_tuples): changed to "static void"
694
	instead of "static int", no ways for this function to fail.
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
695
696
2004-09-04  Federico Di Gregorio  <fog@debian.org>
697
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
698
	* psycopg/pqpath.c (_pq_fetch_tuples): ported rowcount fix from
699
	1.1.15.
700
701
	* ZPsycopgDA/*: ZPsycopgDA back in action, using the new pooling
702
	code.
703
704
2004-08-29  Federico Di Gregorio  <fog@debian.org>
705
706
	* psycopg/typecast_basic.c (typecast_DECIMAL_cast): added DECIMAL
707
	typecaster; it even works :).
708
709
	* scripts/buildtypes.py (basic_types): added DECIMAL typecaster
710
	for the NUMERIC oid.
711
712
	* examples/threads.py: updated threads example to use pooling code. 
713
714
	* lib/pool.py: added very simple and thread-safe connection
715
	pooling class.
716
717
	* psycopg/cursor_type.c (psyco_curs_fetchmany): fixed problem with
718
	.fetchall() and .fetchmany() returning None instead of [] on empty
719
	result sets.
720
721
	* Release 1.99.8.
722
723
2004-08-28  Federico Di Gregorio  <fog@debian.org>
724
725
	* psycopg/cursor_type.c (psyco_curs_execute): added processing of
726
	unicode queries.
727
728
	* examples/encoding.py: much better encoding example, also using
729
	the new UNICODE typecaster.
730
731
	* psycopg/typecast_basic.c (typecast_UNICODE_cast): added UNICODE
732
	typecaster.
733
734
	* lib/extensions.py: the encodings dictionary is not available by
735
	default but can be accessed from the psycopg.extensions module.
736
737
	* psycopg/adapter_qstring.h: remove encoding information from
738
	qstring adapter and moved it into psycopg module.
739
740
2004-08-26  Federico Di Gregorio  <fog@debian.org>
741
742
	* psycopg/cursor_type.c (_psyco_curs_prefetch): added check for
743
	asynchronous fetch by wrong cursor.
744
745
	* psycopg/pqpath.c (pq_fetch): fixed backend status message (bug
746
	reported by Daniele Varrazzo.)
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
747
748
2004-07-29  Federico Di Gregorio  <fog@debian.org>
749
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
750
	* psycopg/typecast_basic.c (typecast_BINARY_cast): reverted to
751
	using strings instead of buffers when converting postgresql binary
752
	objects (should *temporarily* fix corruption bug reported on
753
	win32.)
754
755
2004-07-21  Federico Di Gregorio  <fog@debian.org>
756
757
	* psycopg/cursor_type.c: removed __iter__ and next methods from
758
	object methods and moved them where they do belong (tp_iter and
759
	tp_iternext.) Bug reported by Daniele Varrazzo (again!)
760
761
2004-07-19  Federico Di Gregorio  <fog@debian.org>
762
763
	* psycopg/typecast_datetime.c (typecast_PYINTERVAL_cast): replaced
764
	round() with micro() when rounding seconds (fixes bugs reported by
765
	Daniele Varrazzo.)
766
767
2004-07-16  Federico Di Gregorio  <fog@debian.org>
768
769
	* psycopg/pqpath.c (pq_set_critical): allow for a custom message
770
	insted of the one from PQerrorMessage.
771
	(pq_resolve_critical): added argument to specify if connection is
772
	to be closed (used to not close it during COPY FROM/TO criticals.)
773
774
	* psycopg/cursor_type.c (psyco_curs_fileno, psyco_curs_isready):
775
	added extension methods related to async queries. 
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
776
777
2004-07-15  Federico Di Gregorio  <fog@debian.org>
778
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
779
	* Release 1.99.7.
780
781
	* examples/tz.py: added example about time zones.
782
783
	* psycopg/typecast_datetime.c (typecast_PYDATETIME_cast): create
784
	FixedOffsetTimezone for postgresql "timestamp with time zone"
785
	types.
786
787
	* lib/tz.py: added (even more than) needed tzinfo classes.
788
789
	* psycopg/typecast.c (typecast_call): changed typecast call code
790
	to take the additional cursor parameter, needed for
791
	cursor-dependent type casting (tzinfo & friends.)
792
793
	* psycopg/cursor_type.c (_psyco_curs_buildrow_with_factory): added
794
	use of tuple factories to fetcXXX methods.
795
796
	* lib/extras.py: little extra goodies for psycopg.
797
798
2004-07-14  Federico Di Gregorio  <fog@debian.org>
799
800
	* Release 1.99.6. 
801
	
802
	* psycopg/connection_type.c: added .dsn attribute to connection
803
	objects.
804
805
	* psycopg/cursor_type.c (psyco_curs_mogrify): added .mogrify()
806
	method.
807
808
	* psycopg/adapter_qstring.c: copy the connection encoding only if
809
	wrapped object is unicode and added table of encodings.
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
810
811
2004-07-13  Federico Di Gregorio  <fog@debian.org>
812
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
813
	* psycopg/cursor_type.c (_mogrify): moved Dprintf statement to
814
	avoid dereferencing empty pointer (from 1.1.x)
815
	(psyco_curs_execute): now we save the query in self->query instead
816
	of freeing the memory ASAP.
817
	(cursorObject_members): and we finally export the saved query
818
	through the cursor members interface. that's all folks.
819
820
	* lib/extensions.py: added extensions module to clearly separate
821
	psycopg own extensions from DBAPI-2.0
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
822
823
2004-07-10  Federico Di Gregorio  <fog@debian.org>
824
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
825
	* psycopg/typecast_datetime.c: ported interval fix from 1.1.x.
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
826
827
2004-05-16  Federico Di Gregorio  <fog@debian.org>
828
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
829
	* psycopg/typecast_datetime.c (typecast_*_cast): fixed Value error
830
	when seconds > 59 by setting minutes += 1 and seconds -= 60
831
	(reported by Marcel Gsteiger.) 
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
832
833
2004-04-24  Federico Di Gregorio  <fog@debian.org>
834
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
835
	* ported time interval patch by Ross Cohen from 1.1.12.
836
837
2004-04-19  Federico Di Gregorio  <fog@debian.org>
838
839
	* psycopg/typecast_datetime.c (typecast_PYDATE_cast): applied
840
	patch from Jason Erickson: min and max taken from datetime.Date
841
	type.
842
	
843
2004-04-18  Federico Di Gregorio  <fog@debian.org>
844
845
	* Applied changes from Jason Erickson to build on win32; see his
846
	(slightly edited) entry below. (Still builds on Linux :)
847
848
	* psycopg/*.c: removed inclusion of pthread.h from all files
849
	except psycopg/config.h to build on win32 without faking the file.
850
851
2004-04-15  Jason Erickson <jerickso@stickpeople.com>
852
 
853
        * setup.py: Various changes. The critical ones: 
854
	  - Make an empty pthread.h file so all the code doing an 
855
	    #include <pthread.h> will find something.
856
	  - Appended the winsock2 library and the PostgreSQL library to 
857
	    the library path.
858
	  - Setup the include path.
859
	  - Have the PSYCOPG_VERSION macro be included with quotes.
860
 
861
        * config.h: Added/Cleaned up Win32 includes, defines, stub functions.
862
 
863
        * typecast.h: Removed ';' after PyObject_HEAD in the
864
	typecastObject structure since Microsoft Visual Studio does not
865
	like it.
866
867
2004-04-15  Federico Di Gregorio  <fog@debian.org>
868
869
	* Release 1.99.5 (bug-fixing and reorganization)
870
871
	* setup.py et al.: moved psycopg to psycopg._psycopg to make
872
	easier to provide high level python-only utilities (like the
873
	promised pooling code). psycopg/__init__.py imports _psycopg and
874
	make all the default DBAPI-2.0 stuff available. 
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
875
876
2004-04-14  Federico Di Gregorio  <fog@debian.org>
877
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
878
	* psycopg/psycopgmodule.c (initpsycopg): wrapped initialization of
879
	date/time adapters in #ifdefs to have psycopg compile without mx
880
	or builtin datetime.
881
882
2004-04-10  Federico Di Gregorio  <fog@debian.org>
883
884
	* Release 1.99.4.
885
886
2004-04-09  Federico Di Gregorio  <fog@debian.org>
887
888
	* psycopg/typecast_builtins.c: changed DATE to not include
889
	DATETIME types anymore.
890
891
	* psycopg/adapter_datetime.c (pydatetime_str): switched from
892
	strftime to isoformat to preserve fractional seconds.
893
894
2004-04-08  Federico Di Gregorio  <fog@debian.org>
895
896
	* psycopg/psycopgmodule.c (psyco_connect): ported sslmode
897
	parameter from 1.1 branch.
898
899
	* psycopg/adapter_datetime.*: added python built-in datetime
900
	adapters. also added the datetime typecasters (still using mx as
901
	default).
902
903
	* psycopg/typecast.h: removed aliases, they now live in the right
904
	typecast_xxx.c file.
905
906
2004-03-08  Federico Di Gregorio  <fog@debian.org>
907
908
	* Release 1.99.3 (alpha 4).
909
910
	* examples/lastrowid.py: and the .lastrowid example is in. 
911
912
	* psycopg/cursor_type.c (_mogrify): added call to .prepare()
913
	method in both dict and sequence path.
914
915
	* psycopg/connection_int.c (conn_set_client_encoding): added
916
	encoding-change code.
917
918
	* psycopg/adapter_qstring.c (qstring_quote): added hard-coded
919
	support for utf8 and latin1 encodings.
920
921
2004-03-01  Federico Di Gregorio  <fog@debian.org>
922
923
	* psycopg/connection_int.c (conn_close): does not use libpq
924
	functions on NULL pgconn (this can happen when conn_close is
925
	called after a failed PQconnect.)
926
927
2004-02-29  Federico Di Gregorio  <fog@debian.org> 
928
929
	* Release 1.99.2 (alpha 3).
930
	
931
	* psycopg/cursor_type.c: added .rownumber and .connection
932
	attributes. Also added .scroll(), .next() and .__iter__() methods
933
	(see DBAPI2-.0 extensions on PEP.)
934
935
	* psycopg/connection_type.c (psyco_conn_set_isolation_level):
936
	added connection method .set_isolation_level(). Also added all
937
	error objects to the connection (see DBAPI2-.0 extensions on PEP.)
938
939
	* psycopg/connection_int.c (conn_switch_isolation_level): added
940
	isolation level switching code.
941
942
	* setup.py: removed all references to PSYCOPG_NEWSTYLE: support
943
	for python < 2.2 has been dropped.
944
945
	* typecast_basic.c (typecast_BINARY_cast): now binary objects are
946
	returned as true buffers.
947
948
	* adapter_binary.*: added adapter for buffers and binary (bytea)
949
	objects.
950
951
	* Release 1.99.1 (alpha 2).
952
953
	* adapter_mxdatetime.*: added adapters for all mx.DateTime types.
954
955
2004-02-28  Federico Di Gregorio  <fog@debian.org>
956
957
	* cursor_type.c (_mogrify): complete rework of the mogrification
958
	code to use the microprotocols_adapt function.
959
960
	* typecast_basic.c (typecast_BOOLEAN_cast): we now return real
961
	Py_True and Py_False values.
962
963
	* microprotocols.h: added very simple microprotocols
964
	implementation to allow for python->postgresql types registry.
965
966
2004-01-05  Federico Di Gregorio  <fog@debian.org>
967
968
	* connection_int.c (conn_commit/conn_rollback): added code to
969
	commit/rollback and connection methods. 
970
971
2004-01-04  Federico Di Gregorio  <fog@debian.org>
972
973
	* cursor_type.c (psyco_curs_fetchone): added fetchone method.
974
975
2004-01-03  Federico Di Gregorio  <fog@debian.org>
976
977
	* added (empty) INSTALL file.
978
979
	* cursor_type.c (cursor_dealloc): added qattr for custom object
980
	quoting using a callable attribute.
981
	(_mogrify): ported new, fixed mogrification code from 1.1.12.
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
982
983
2003-08-01  Federico Di Gregorio  <fog@debian.org>
984
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
985
	* cursor_type.c (_mogrify_sequence): added sequence mogrification,
986
	can be done better, on the dict model.
987
988
2003-07-28  Federico Di Gregorio  <fog@debian.org>
989
990
	* typeobj_qstring.c: added quoted strings (can use both own code,
991
	like psycopg 1.x or PQescapeString from lipq.)
992
993
2003-07-21  Federico Di Gregorio  <fog@debian.org>
994
995
	* connection_type.c (psyco_conn_close): added .close()
996
	method. wow.
997
998
	* cursor_*.c: added basic cursor interface (new-style.)
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
999
1000
2003-07-20  Federico Di Gregorio  <fog@debian.org>
1001
3 by Federico Di Gregorio
Undo of wrong commit of 1.1.x source code over 2.x.
1002
	* psycopg/*: beginning of new source layout. if you think this
1003
	changelog is somewhat empty, you're right. look at
1004
	doc/ChangeLog-1.x for psycopg 1.x changelog just before the
1005
	branch.
1006
1 by Federico Di Gregorio
Initial psycopg 2 import after SVN crash.
1007