source: branches/4.x/docs/changelog.txt @ 653

Last change on this file since 653 was 653, checked in by cito, 4 years ago

Specify supported Python versions for the 4.x branch

Tests for Python 2.4, 2.5, 2.6., 2.7 are running now, so we can specify these
versions as supported in this branch. The trunk will only support Python >= 2.6.
The test are not compatible with Python 2.3, but the basic functionality still
works in Python 2.3, so old code to support Python < 2.4 has been left in place.

A config file for testing with tox has been added. Unfortunately, tox supports
only Python 2.6 and 2.7. So Python 2.4 and 2.5 need to be tested manually.

  • Property svn:keywords set to Author Date Id Revision
File size: 14.2 KB
Line 
1ChangeLog
2=========
3
4Version 4.2
5-----------
6- Set a better default for the user option "escaping-funcs".
7- Force build to compile with no errors.
8- Fix decimal point handling.
9- Add option to return boolean values as bool objects.
10- Add option to return money values as string.
11- Fix notification handler (Thanks Patrick TJ McPhee).
12- Fix a small issue with large objects.
13- Greatly improve unit testing, tests run with Python 2.4 to 2.7 again.
14
15Version 4.1.1 (2013-01-08)
16--------------------------
17- Add WhenNotified class and method.  Replaces need for third party pgnotify.
18- Sharpen test for inserting current_timestamp.
19- Add more quote tests.  False and 0 should evaluate to NULL.
20- More tests - Any number other than 0 is True.
21- Do not use positional parameters internally.
22  This restores backward compatibility with version 4.0.
23- Add methods for changing the decimal point.
24
25Version 4.1 (2013-01-01)
26------------------------
27- Dropped support for Python below 2.5 and PostgreSQL below 8.3.
28- Added support for Python up to 2.7 and PostgreSQL up to 9.2.
29- Particularly, support PQescapeLiteral() and PQescapeIdentifier().
30- The query method of the classic API now supports positional parameters.
31  This an effective way to pass arbitrary or unknown data without worrying
32  about SQL injection or syntax errors (contribution by Patrick TJ McPhee).
33- The classic API now supports a method namedresult() in addition to
34  getresult() and dictresult(), which returns the rows of the result
35  as named tuples if these are supported (Python 2.6 or higher).
36- The classic API has got the new methods begin(), commit(), rollback(),
37  savepoint() and release() for handling transactions.
38- Both classic and DBAPI 2 connections can now be used as context
39  managers for encapsulating transactions.
40- The execute() and executemany() methods now return the cursor object,
41  so you can now write statements like "for row in cursor.execute(...)"
42  (as suggested by Adam Frederick).
43- Binary objects are now automatically escaped and unescaped.
44- Bug in money quoting fixed.  Amounts of $0.00 handled correctly.
45- Proper handling of date and time objects as input.
46- Proper handling of floats with 'nan' or 'inf' values as input.
47- Fixed the set_decimal() function.
48- All DatabaseError instances now have a sqlstate attribute.
49- The getnotify() method can now also return payload strings (#15).
50- Better support for notice processing with the new methods
51  set_notice_receiver() and get_notice_receiver()
52  (as suggested by Michael Filonenko, see #37).
53- Open transactions are rolled back when pgdb connections are closed
54  (as suggested by Peter Harris, see #46).
55- Connections and cursors can now be used with the "with" statement
56  (as suggested by Peter Harris, see #46).
57- New method use_regtypes() that can be called to let getattnames()
58  return regular type names instead of the simplified classic types (#44).
59
60
61Version 4.0 (2009-01-01)
62------------------------
63- Dropped support for Python below 2.3 and PostgreSQL below 7.4.
64- Improved performance of fetchall() for large result sets
65  by speeding up the type casts (as suggested by Peter Schuller).
66- Exposed exceptions as attributes of the connection object.
67- Exposed connection as attribute of the cursor object.
68- Cursors now support the iteration protocol.
69- Added new method to get parameter settings.
70- Added customizable row_factory as suggested by Simon Pamies.
71- Separated between mandatory and additional type objects.
72- Added keyword args to insert, update and delete methods.
73- Added exception handling for direct copy.
74- Start transactions only when necessary, not after every commit().
75- Release the GIL while making a connection
76  (as suggested by Peter Schuller).
77- If available, use decimal.Decimal for numeric types.
78- Allow DB wrapper to be used with DB-API 2 connections
79  (as suggested by Chris Hilton).
80- Made private attributes of DB wrapper accessible.
81- Dropped dependence on mx.DateTime module.
82- Support for PQescapeStringConn() and PQescapeByteaConn();
83  these are now also used by the internal _quote() functions.
84- Added 'int8' to INTEGER types. New SMALLINT type.
85- Added a way to find the number of rows affected by a query()
86  with the classic pg module by returning it as a string.
87  For single inserts, query() still returns the oid as an integer.
88  The pgdb module already provides the "rowcount" cursor attribute
89  for the same purpose.
90- Improved getnotify() by calling PQconsumeInput() instead of
91  submitting an empty command.
92- Removed compatibility code for old OID munging style.
93- The insert() and update() methods now use the "returning" clause
94  if possible to get all changed values, and they also check in advance
95  whether a subsequent select is possible, so that ongoing transactions
96  won't break if there is no select privilege.
97- Added "protocol_version" and "server_version" attributes.
98- Revived the "user" attribute.
99- The pg module now works correctly with composite primary keys;
100  these are represented as frozensets.
101- Removed the undocumented and actually unnecessary "view" parameter
102  from the get() method.
103- get() raises a nicer ProgrammingError instead of a KeyError
104  if no primary key was found.
105- delete() now also works based on the primary key if no oid available
106  and returns whether the row existed or not.
107
108
109Version 3.8.1 (2006-06-05)
110--------------------------
111- Use string methods instead of deprecated string functions.
112- Only use SQL-standard way of escaping quotes.
113- Added the functions escape_string() and escape/unescape_bytea()
114  (as suggested by Charlie Dyson and Kavous Bojnourdi a long time ago).
115- Reverted code in clear() method that set date to current.
116- Added code for backwards compatibility in OID munging code.
117- Reorder attnames tests so that "interval" is checked for before "int."
118- If caller supplies key dictionary, make sure that all has a namespace.
119
120Version 3.8 (2006-02-17)
121------------------------
122- Installed new favicon.ico from Matthew Sporleder <mspo@mspo.com>
123- Replaced snprintf by PyOS_snprintf.
124- Removed NO_SNPRINTF switch which is not needed any longer
125- Clean up some variable names and namespace
126- Add get_relations() method to get any type of relation
127- Rewrite get_tables() to use get_relations()
128- Use new method in get_attnames method to get attributes of views as well
129- Add Binary type
130- Number of rows is now -1 after executing no-result statements
131- Fix some number handling
132- Non-simple types do not raise an error any more
133- Improvements to documentation framework
134- Take into account that nowadays not every table must have an oid column
135- Simplification and improvement of the inserttable() function
136- Fix up unit tests
137- The usual assortment of minor fixes and enhancements
138
139Version 3.7 (2005-09-07)
140------------------------
141Improvement of pgdb module:
142
143- Use Python standard `datetime` if `mxDateTime` is not available
144
145Major improvements and clean-up in classic pg module:
146
147- All members of the underlying connection directly available in `DB`
148- Fixes to quoting function
149- Add checks for valid database connection to methods
150- Improved namespace support, handle `search_path` correctly
151- Removed old dust and unnessesary imports, added docstrings
152- Internal sql statements as one-liners, smoothed out ugly code
153
154Version 3.6.2 (2005-02-23)
155--------------------------
156- Further fixes to namespace handling
157
158Version 3.6.1 (2005-01-11)
159--------------------------
160- Fixes to namespace handling
161
162Version 3.6 (2004-12-17)
163------------------------
164- Better DB-API 2.0 compliance
165- Exception hierarchy moved into C module and made available to both APIs
166- Fix error in update method that caused false exceptions
167- Moved to standard exception hierarchy in classic API
168- Added new method to get transaction state
169- Use proper Python constants where appropriate
170- Use Python versions of strtol, etc. Allows Win32 build.
171- Bug fixes and cleanups
172
173Version 3.5 (2004-08-29)
174------------------------
175Fixes and enhancements:
176
177- Add interval to list of data types
178- fix up method wrapping especially close()
179- retry pkeys once if table missing in case it was just added
180- wrap query method separately to handle debug better
181- use isinstance instead of type
182- fix free/PQfreemem issue - finally
183- miscellaneous cleanups and formatting
184
185Version 3.4 (2004-06-02)
186------------------------
187Some cleanups and fixes.
188This is the first version where PyGreSQL is moved back out of the
189PostgreSQL tree. A lot of the changes mentioned below were actually
190made while in the PostgreSQL tree since their last release.
191
192- Allow for larger integer returns
193- Return proper strings for true and false
194- Cleanup convenience method creation
195- Enhance debugging method
196- Add reopen method
197- Allow programs to preload field names for speedup
198- Move OID handling so that it returns long instead of int
199- Miscellaneous cleanups and formatting
200
201Version 3.3 (2001-12-03)
202------------------------
203A few cleanups.  Mostly there was some confusion about the latest version
204and so I am bumping the number to keep it straight.
205
206- Added NUMERICOID to list of returned types. This fixes a bug when
207  returning aggregates in the latest version of PostgreSQL.
208
209Version 3.2 (2001-06-20)
210------------------------
211Note that there are very few changes to PyGreSQL between 3.1 and 3.2.
212The main reason for the release is the move into the PostgreSQL
213development tree.  Even the WIN32 changes are pretty minor.
214
215- Add Win32 support (gerhard@bigfoot.de)
216- Fix some DB-API quoting problems (niall.smart@ebeon.com)
217- Moved development into PostgreSQL development tree.
218
219Version 3.1 (2000-11-06)
220------------------------
221- Fix some quoting functions.  In particular handle NULLs better.
222- Use a method to add primary key information rather than direct
223  manipulation of the class structures
224- Break decimal out in `_quote` (in pg.py) and treat it as float
225- Treat timestamp like date for quoting purposes
226- Remove a redundant SELECT from the `get` method speeding it,
227  and `insert` (since it calls `get`) up a little.
228- Add test for BOOL type in typecast method to `pgdbTypeCache` class
229  (tv@beamnet.de)
230- Fix pgdb.py to send port as integer to lower level function
231  (dildog@l0pht.com)
232- Change pg.py to speed up some operations
233- Allow updates on tables with no primary keys
234
235Version 3.0 (2000-05-30)
236------------------------
237- Remove strlen() call from pglarge_write() and get size from object
238  (Richard@Bouska.cz)
239- Add a little more error checking to the quote function in the wrapper
240- Add extra checking in `_quote` function
241- Wrap query in pg.py for debugging
242- Add DB-API 2.0 support to pgmodule.c (andre@via.ecp.fr)
243- Add DB-API 2.0 wrapper pgdb.py (andre@via.ecp.fr)
244- Correct keyword clash (temp) in tutorial
245- Clean up layout of tutorial
246- Return NULL values as None (rlawrence@lastfoot.com)
247  (WARNING: This will cause backwards compatibility issues)
248- Change None to NULL in insert and update
249- Change hash-bang lines to use /usr/bin/env
250- Clearing date should be blank (NULL) not TODAY
251- Quote backslashes in strings in `_quote` (brian@CSUA.Berkeley.EDU)
252- Expanded and clarified build instructions (tbryan@starship.python.net)
253- Make code thread safe (Jerome.Alet@unice.fr)
254- Add README.distutils (mwa@gate.net & jeremy@cnri.reston.va.us)
255- Many fixes and increased DB-API compliance by chifungfan@yahoo.com,
256  tony@printra.net, jeremy@alum.mit.edu and others to get the final
257  version ready to release.
258
259Version 2.4 (1999-06-15)
260------------------------
261- Insert returns None if the user doesn't have select permissions
262  on the table.  It can (and does) happen that one has insert but
263  not select permissions on a table.
264- Added ntuples() method to query object (brit@druid.net)
265- Corrected a bug related to getresult() and the money type
266- Corrected a bug related to negative money amounts
267- Allow update based on primary key if munged oid not available and
268  table has a primary key
269- Add many __doc__ strings (andre@via.ecp.fr)
270- Get method works with views if key specified
271
272Version 2.3 (1999-04-17)
273------------------------
274- connect.host returns "localhost" when connected to Unix socket
275  (torppa@tuhnu.cutery.fi)
276- Use `PyArg_ParseTupleAndKeywords` in connect() (torppa@tuhnu.cutery.fi)
277- fixes and cleanups (torppa@tuhnu.cutery.fi)
278- Fixed memory leak in dictresult() (terekhov@emc.com)
279- Deprecated pgext.py - functionality now in pg.py
280- More cleanups to the tutorial
281- Added fileno() method - terekhov@emc.com (Mikhail Terekhov)
282- added money type to quoting function
283- Compiles cleanly with more warnings turned on
284- Returns PostgreSQL error message on error
285- Init accepts keywords (Jarkko Torppa)
286- Convenience functions can be overridden (Jarkko Torppa)
287- added close() method
288
289Version 2.2 (1998-12-21)
290------------------------
291- Added user and password support thanks to Ng Pheng Siong (ngps@post1.com)
292- Insert queries return the inserted oid
293- Add new `pg` wrapper (C module renamed to _pg)
294- Wrapped database connection in a class
295- Cleaned up some of the tutorial.  (More work needed.)
296- Added `version` and `__version__`.
297  Thanks to thilo@eevolute.com for the suggestion.
298
299Version 2.1 (1998-03-07)
300------------------------
301- return fields as proper Python objects for field type
302- Cleaned up pgext.py
303- Added dictresult method
304
305Version 2.0  (1997-12-23)
306-------------------------
307- Updated code for PostgreSQL 6.2.1 and Python 1.5
308- Reformatted code and converted to use full ANSI style prototypes
309- Changed name to PyGreSQL (from PyGres95)
310- Changed order of arguments to connect function
311- Created new type `pgqueryobject` and moved certain methods to it
312- Added a print function for pgqueryobject
313- Various code changes - mostly stylistic
314
315Version 1.0b (1995-11-04)
316-------------------------
317- Keyword support for connect function moved from library file to C code
318  and taken away from library
319- Rewrote documentation
320- Bug fix in connect function
321- Enhancements in large objects interface methods
322
323Version 1.0a (1995-10-30)
324-------------------------
325A limited release.
326
327- Module adapted to standard Python syntax
328- Keyword support for connect function in library file
329- Rewrote default parameters interface (internal use of strings)
330- Fixed minor bugs in module interface
331- Redefinition of error messages
332
333Version 0.9b (1995-10-10)
334-------------------------
335The first public release.
336
337- Large objects implementation
338- Many bug fixes, enhancements, ...
339
340Version 0.1a (1995-10-07)
341-------------------------
342- Basic libpq functions (SQL access)
Note: See TracBrowser for help on using the repository browser.