source: trunk/docs/changelog.txt @ 323

Last change on this file since 323 was 323, checked in by darcy, 12 years ago

Raise error when direct copy fails. From Carl Staelin.

File size: 9.3 KB
2PyGreSQL ChangeLog
5Version 3.8.2 (?)
7- Added new method to get parameter settings
8- Added row_factory as suggested by Simon Pamies
9- Separated between mandatory and additional type objects
10- Added keyword args to insert, update and delete methods
11- Added exception handling for direct copy
13Version 3.8.1 (2006-06-05)
15- Use string methods instead of deprecated string functions.
16- Only use SQL-standard way of escaping quotes.
17- Added the functions escape_string() and escape/unescape_bytea()
18  (as suggested by Charlie Dyson and Kavous Bojnourdi a long time ago).
19- Reverted code in clear() method that set date to current.
20- Added code for backwards compatibility in OID munging code.
21- Reorder attnames tests so that "interval" is checked for before "int."
22- If caller supplies key dictionary, make sure that all has a namespace.
24Version 3.8 (2006-02-17)
26- Installed new favicon.ico from Matthew Sporleder <>
27- Replaced snprintf by PyOS_snprintf.
28- Removed NO_SNPRINTF switch which is not needed any longer
29- Clean up some variable names and namespace
30- Add get_relations() method to get any type of relation
31- Rewrite get_tables() to use get_relations()
32- Use new method in get_attnames method to get attributes of views as well
33- Add Binary type
34- Number of rows is now -1 after executing no-result statements
35- Fix some number handling
36- Non-simple types do not raise an error any more
37- Improvements to documentation framework
38- Take into account that nowadays not every table must have an oid column
39- Simplification and improvement of the inserttable() function
40- Fix up unit tests
41- The usual assortment of minor fixes and enhancements
43Version 3.7 (2005-09-07)
45Improvement of pgdb module:
47- Use Python standard `datetime` if `mxDateTime` is not available
49Major improvements and clean-up in classic pg module:
51- All members of the underlying connection directly available in `DB`
52- Fixes to quoting function
53- Add checks for valid database connection to methods
54- Improved namespace support, handle `search_path` correctly
55- Removed old dust and unnessesary imports, added docstrings
56- Internal sql statements as one-liners, smoothed out ugly code
58Version 3.6.2 (2005-02-23)
60- Further fixes to namespace handling
62Version 3.6.1 (2005-01-11)
64- Fixes to namespace handling
66Version 3.6 (2004-12-17)
68- Better DB-API 2.0 compliance
69- Exception hierarchy moved into C module and made available to both APIs
70- Fix error in update method that caused false exceptions
71- Moved to standard exception hierarchy in classic API
72- Added new method to get transaction state
73- Use proper Python constants where appropriate
74- Use Python versions of strtol, etc. Allows Win32 build.
75- Bug fixes and cleanups
77Version 3.5 (2004-08-29)
79Fixes and enhancements:
81- Add interval to list of data types
82- fix up method wrapping especially close()
83- retry pkeys once if table missing in case it was just added
84- wrap query method separately to handle debug better
85- use isinstance instead of type
86- fix free/PQfreemem issue - finally
87- miscellaneous cleanups and formatting
89Version 3.4 (2004-06-02)
91Some cleanups and fixes.
92This is the first version where PyGreSQL is moved back out of the
93PostgreSQL tree. A lot of the changes mentioned below were actually
94made while in the PostgreSQL tree since their last release.
96- Allow for larger integer returns
97- Return proper strings for true and false
98- Cleanup convenience method creation
99- Enhance debugging method
100- Add reopen method
101- Allow programs to preload field names for speedup
102- Move OID handling so that it returns long instead of int
103- Miscellaneous cleanups and formatting
105Version 3.3 (2001-12-03)
107A few cleanups.  Mostly there was some confusion about the latest version
108and so I am bumping the number to keep it straight.
110- Added NUMERICOID to list of returned types. This fixes a bug when
111  returning aggregates in the latest version of PostgreSQL.
113Version 3.2 (2001-06-20)
115Note that there are very few changes to PyGreSQL between 3.1 and 3.2.
116The main reason for the release is the move into the PostgreSQL
117development tree.  Even the WIN32 changes are pretty minor.
119- Add Win32 support (
120- Fix some DB-API quoting problems (
121- Moved development into PostgreSQL development tree.
123Version 3.1 (2000-11-06)
125- Fix some quoting functions.  In particular handle NULLs better.
126- Use a method to add primary key information rather than direct
127  manipulation of the class structures
128- Break decimal out in `_quote` (in and treat it as float
129- Treat timestamp like date for quoting purposes
130- Remove a redundant SELECT from the `get` method speeding it,
131  and `insert` (since it calls `get`) up a little.
132- Add test for BOOL type in typecast method to `pgdbTypeCache` class
133  (
134- Fix to send port as integer to lower level function
135  (
136- Change to speed up some operations
137- Allow updates on tables with no primary keys
139Version 3.0 (2000-05-30)
141- Remove strlen() call from pglarge_write() and get size from object
142  (
143- Add a little more error checking to the quote function in the wrapper
144- Add extra checking in `_quote` function
145- Wrap query in for debugging
146- Add DB-API 2.0 support to pgmodule.c (
147- Add DB-API 2.0 wrapper (
148- Correct keyword clash (temp) in tutorial
149- Clean up layout of tutorial
150- Return NULL values as None (
151  (WARNING: This will cause backwards compatibility issues)
152- Change None to NULL in insert and update
153- Change hash-bang lines to use /usr/bin/env
154- Clearing date should be blank (NULL) not TODAY
155- Quote backslashes in strings in `_quote` (brian@CSUA.Berkeley.EDU)
156- Expanded and clarified build instructions (
157- Make code thread safe (
158- Add README.distutils ( &
159- Many fixes and increased DB-API compliance by,
160, and others to get the final
161  version ready to release.
163Version 2.4 (1999-06-15)
165- Insert returns None if the user doesn't have select permissions
166  on the table.  It can (and does) happen that one has insert but
167  not select permissions on a table.
168- Added ntuples() method to query object (
169- Corrected a bug related to getresult() and the money type
170- Corrected a bug related to negative money amounts
171- Allow update based on primary key if munged oid not available and
172  table has a primary key
173- Add many __doc__ strings (
174- Get method works with views if key specified
176Version 2.3 (1999-04-17)
178- returns "localhost" when connected to Unix socket
179  (
180- Use `PyArg_ParseTupleAndKeywords` in connect() (
181- fixes and cleanups (
182- Fixed memory leak in dictresult() (
183- Deprecated - functionality now in
184- More cleanups to the tutorial
185- Added fileno() method - (Mikhail Terekhov)
186- added money type to quoting function
187- Compiles cleanly with more warnings turned on
188- Returns PostgreSQL error message on error
189- Init accepts keywords (Jarkko Torppa)
190- Convenience functions can be overridden (Jarkko Torppa)
191- added close() method
193Version 2.2 (1998-12-21)
195- Added user and password support thanks to Ng Pheng Siong (
196- Insert queries return the inserted oid
197- Add new `pg` wrapper (C module renamed to _pg)
198- Wrapped database connection in a class
199- Cleaned up some of the tutorial.  (More work needed.)
200- Added `version` and `__version__`.
201  Thanks to for the suggestion.
203Version 2.1 (1998-03-07)
205- return fields as proper Python objects for field type
206- Cleaned up
207- Added dictresult method
209Version 2.0  (1997-12-23)
211- Updated code for PostgreSQL 6.2.1 and Python 1.5
212- Reformatted code and converted to use full ANSI style prototypes
213- Changed name to PyGreSQL (from PyGres95)
214- Changed order of arguments to connect function
215- Created new type `pgqueryobject` and moved certain methods to it
216- Added a print function for pgqueryobject
217- Various code changes - mostly stylistic
219Version 1.0b (1995-11-04)
221- Keyword support for connect function moved from library file to C code
222  and taken away from library
223- Rewrote documentation
224- Bug fix in connect function
225- Enhancements in large objects interface methods
227Version 1.0a (1995-10-30)
229A limited release.
231- Module adapted to standard Python syntax
232- Keyword support for connect function in library file
233- Rewrote default parameters interface (internal use of strings)
234- Fixed minor bugs in module interface
235- Redefinition of error messages
237Version 0.9b (1995-10-10)
239The first public release.
241- Large objects implementation
242- Many bug fixes, enhancements, ...
244Version 0.1a (1995-10-07)
246- Basic libpq functions (SQL access)
Note: See TracBrowser for help on using the repository browser.