11
2- Announce: Release of PyGreSQL version2.4
2+ Announce: Release of PyGreSQL version3.0
33===============================================
44
5- PyGreSQLv2.4 has been released.
5+ PyGreSQLv3.0 has been released.
66It is available at: ftp://ftp.druid.net/pub/distrib/PyGreSQL.tgz. If
7- you are on NetBSD, look in the packages directory under databases. If
8- it isn't there yet, it should be there shortly. You can also pick up the
9- package files from ftp://ftp.druid.net/pub/distrib/pygresql.pkg.tgz.
10- There is also a package in the FreeBSD ports collection but as I write
11- this it is at version 2.1. I will try to get that updated as well.
7+ you are running NetBSD, look in the packages directory under databases.
8+ There is also a package in the FreeBSD ports collection.
129
1310PostgreSQL is a database system derived from Postgres4.2. It conforms
1411to (most of) ANSI SQL and offers many interesting capabilities (C
@@ -28,30 +25,61 @@ PyGreSQL is a python module that interfaces to a PostgreSQL database. It
2825embeds the PostgreSQL query library to allow easy use of the powerful
2926PostgreSQL features from a Python script.
3027
31- I wanted to have DB-SIG API support in the next release but there are
32- enough fixes and improvements to make one more release before starting
33- on that .The next version will be 3.0 and have the DB-SIG API support.
34- Note that I said this for 2.4 but some required changes from others have
35- been slow in coming (I'm not complaining, people do have lives) and
36- there were enough fixes that I didn't want to keep them from a release .
28+ This release of PyGreSQL is the first DB-SIG API. That's why we have
29+ a bump in the major number. There is also a potential problem in
30+ backwards compatibility .Previously when there was a NULL in a returned
31+ field it was returned as a blank. Now it is more properly returned as
32+ a Python None. Any scripts that expect NULLs to be blanks will have
33+ problems with this .
3734
38- PyGreSQL 2.3 was developed and tested on a NetBSD 1.3_BETA system. It
35+ Due to the fact that the DB-API is brand new, it is expected that there
36+ will be a 3.1 release shortly with corrections once many people have
37+ had a chance to test it.
38+
39+ See the other changes below or in the Changelog file.
40+
41+ PyGreSQL 2.0 was developed and tested on a NetBSD 1.3_BETA system. It
3942is based on the PyGres95 code written by Pascal Andre,
4043andre@chimay.via.ecp.fr. I changed the version to 2.0 and updated the
4144code for Python 1.5 and PostgreSQL 6.2.1. While I was at it I upgraded
4245the code to use full ANSI style prototypes and changed the order of
4346arguments to connect. Later versions are fixes and enhancements to that.
47+ The latest version of PyGreSQL works with Python 1.5.2 and PostgreSQL 6.5.
48+
49+ Important changes from PyGreSQL 2.4 to PyGreSQL 3.0:
50+ - Remove strlen() call from pglarge_write() and get size from object.
51+ (Richard@Bouska.cz)
52+ - Add a little more error checking to the quote function in the wrapper
53+ - Add extra checking in _quote function
54+ - Wrap query in pg.py for debugging
55+ - Add DB-API 2.0 support to pgmodule.c (andre@via.ecp.fr)
56+ - Add DB-API 2.0 wrapper pgdb.py (andre@via.ecp.fr)
57+ - Correct keyword clash (temp) in tutorial
58+ - Clean up layout of tutorial
59+ - Return NULL values as None (rlawrence@lastfoot.com) (WARNING: This
60+ will cause backwards compatibility issues.)
61+ - Change None to NULL in insert and update
62+ - Change hash-bang lines to use /usr/bin/env
63+ - Clearing date should be blank (NULL) not TODAY
64+ - Quote backslashes in strings in _quote (brian@CSUA.Berkeley.EDU)
65+ - Expanded and clarified build instructions (tbryan@starship.python.net)
66+ - Make code thread safe (Jerome.Alet@unice.fr)
67+ - Add README.distutils (mwa@gate.net & jeremy@cnri.reston.va.us)
68+ - Many fixes and increased DB-API compliance by chifungfan@yahoo.com,
69+ tony@printra.net, jeremy@alum.mit.edu and others to get the final
70+ version ready to release.
4471
4572Important changes from PyGreSQL 2.3 to PyGreSQL 2.4:
4673 - Insert returns None if the user doesn't have select permissions
4774 on the table. It can (and does) happen that one has insert but
4875 not select permissions on a table.
4976 - Added ntuples() method to query object (brit@druid.net)
5077 - Corrected a bug related to getresult() and the money type
51- - Corrected abut related to negative money amounts
78+ - Corrected abug related to negative money amounts
5279 - Allow update based on primary key if munged oid not available and
5380 table has a primary key
5481 - Add many __doc__ strings. (andre@via.ecp.fr)
82+ - Get method works with views if key specified
5583
5684Important changes from PyGreSQL 2.2 to PyGreSQL 2.3:
5785 - connect.host returns "localhost" when connected to Unix socket