source: trunk/docs/changelog.txt @ 553

Last change on this file since 553 was 516, checked in by darcy, 7 years ago

Seems that keyword expansion was never set up on these files.

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