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
Line 
1==================
2PyGreSQL ChangeLog
3==================
4
5Version 3.8.2 (?)
6-----------------
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
12
13Version 3.8.1 (2006-06-05)
14--------------------------
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.
23
24Version 3.8 (2006-02-17)
25------------------------
26- Installed new favicon.ico from Matthew Sporleder <mspo@mspo.com>
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
42
43Version 3.7 (2005-09-07)
44------------------------
45Improvement of pgdb module:
46
47- Use Python standard `datetime` if `mxDateTime` is not available
48
49Major improvements and clean-up in classic pg module:
50
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
57
58Version 3.6.2 (2005-02-23)
59--------------------------
60- Further fixes to namespace handling
61
62Version 3.6.1 (2005-01-11)
63--------------------------
64- Fixes to namespace handling
65
66Version 3.6 (2004-12-17)
67------------------------
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
76
77Version 3.5 (2004-08-29)
78------------------------
79Fixes and enhancements:
80
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
88
89Version 3.4 (2004-06-02)
90------------------------
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.
95
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
104
105Version 3.3 (2001-12-03)
106------------------------
107A few cleanups.  Mostly there was some confusion about the latest version
108and so I am bumping the number to keep it straight.
109
110- Added NUMERICOID to list of returned types. This fixes a bug when
111  returning aggregates in the latest version of PostgreSQL.
112
113Version 3.2 (2001-06-20)
114------------------------
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.
118
119- Add Win32 support (gerhard@bigfoot.de)
120- Fix some DB-API quoting problems (niall.smart@ebeon.com)
121- Moved development into PostgreSQL development tree.
122
123Version 3.1 (2000-11-06)
124------------------------
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 pg.py) 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  (tv@beamnet.de)
134- Fix pgdb.py to send port as integer to lower level function
135  (dildog@l0pht.com)
136- Change pg.py to speed up some operations
137- Allow updates on tables with no primary keys
138
139Version 3.0 (2000-05-30)
140------------------------
141- Remove strlen() call from pglarge_write() and get size from object
142  (Richard@Bouska.cz)
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 pg.py for debugging
146- Add DB-API 2.0 support to pgmodule.c (andre@via.ecp.fr)
147- Add DB-API 2.0 wrapper pgdb.py (andre@via.ecp.fr)
148- Correct keyword clash (temp) in tutorial
149- Clean up layout of tutorial
150- Return NULL values as None (rlawrence@lastfoot.com)
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 (tbryan@starship.python.net)
157- Make code thread safe (Jerome.Alet@unice.fr)
158- Add README.distutils (mwa@gate.net & jeremy@cnri.reston.va.us)
159- Many fixes and increased DB-API compliance by chifungfan@yahoo.com,
160  tony@printra.net, jeremy@alum.mit.edu and others to get the final
161  version ready to release.
162
163Version 2.4 (1999-06-15)
164------------------------
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 (brit@druid.net)
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 (andre@via.ecp.fr)
174- Get method works with views if key specified
175
176Version 2.3 (1999-04-17)
177------------------------
178- connect.host returns "localhost" when connected to Unix socket
179  (torppa@tuhnu.cutery.fi)
180- Use `PyArg_ParseTupleAndKeywords` in connect() (torppa@tuhnu.cutery.fi)
181- fixes and cleanups (torppa@tuhnu.cutery.fi)
182- Fixed memory leak in dictresult() (terekhov@emc.com)
183- Deprecated pgext.py - functionality now in pg.py
184- More cleanups to the tutorial
185- Added fileno() method - terekhov@emc.com (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
192
193Version 2.2 (1998-12-21)
194------------------------
195- Added user and password support thanks to Ng Pheng Siong (ngps@post1.com)
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 thilo@eevolute.com for the suggestion.
202
203Version 2.1 (1998-03-07)
204------------------------
205- return fields as proper Python objects for field type
206- Cleaned up pgext.py
207- Added dictresult method
208
209Version 2.0  (1997-12-23)
210-------------------------
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
218
219Version 1.0b (1995-11-04)
220-------------------------
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
226
227Version 1.0a (1995-10-30)
228-------------------------
229A limited release.
230
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
236
237Version 0.9b (1995-10-10)
238-------------------------
239The first public release.
240
241- Large objects implementation
242- Many bug fixes, enhancements, ...
243
244Version 0.1a (1995-10-07)
245-------------------------
246- Basic libpq functions (SQL access)
Note: See TracBrowser for help on using the repository browser.