Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) by www.NetBSD.org (Postfix) with ESMTP id 3F4E063E5EB for ; Thu, 3 Jan 2013 13:58:39 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 0B9B114A1BE; Thu, 3 Jan 2013 13:58:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3507414A1BD for ; Thu, 3 Jan 2013 13:58:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id c95ug3c4Pgd4 for ; Thu, 3 Jan 2013 13:58:35 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 7C31714A1BC for ; Thu, 3 Jan 2013 13:58:35 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 6C6C4175DD; Thu, 3 Jan 2013 13:58:35 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 3 Jan 2013 13:58:35 +0000 From: "D'Arcy J.M. Cain" Subject: CVS commit: pkgsrc/databases/py-postgresql To: pkgsrc-changes@NetBSD.org Reply-To: darcy@netbsd.org X-Mailer: log_accum Message-Id: <20130103135835.6C6C4175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: darcy Date: Thu Jan 3 13:58:35 UTC 2013 Modified Files: pkgsrc/databases/py-postgresql: Makefile PLIST distinfo Log Message: Upgrade to version 4.1. Changes since 4.0: - Dropped support for Python below 2.5 and PostgreSQL below 8.3. - Added support for Python up to 2.7 and PostgreSQL up to 9.2. - Particularly, support PQescapeLiteral() and PQescapeIdentifier(). - The query method of the classic API now supports positional parameters. This an effective way to pass arbitrary or unknown data without worrying about SQL injection or syntax errors (contribution by Patrick TJ McPhee). - The classic API now supports a method namedresult() in addition to getresult() and dictresult(), which returns the rows of the result as named tuples if these are supported (Python 2.6 or higher). - The classic API has got the new methods begin(), commit(), rollback(), savepoint() and release() for handling transactions. - Both classic and DBAPI 2 connections can now be used as context managers for encapsulating transactions. - The execute() and executemany() methods now return the cursor object, so you can now write statements like "for row in cursor.execute(...)" (as suggested by Adam Frederick). - Binary objects are now automatically escaped and unescaped. - Bug in money quoting fixed. Amounts of $0.00 handled correctly. - Proper handling of date and time objects as input. - Proper handling of floats with 'nan' or 'inf' values as input. - Fixed the set_decimal() function. - All DatabaseError instances now have a sqlstate attribute. - The getnotify() method can now also return payload strings (#15). - Better support for notice processing with the new methods set_notice_receiver() and get_notice_receiver() (as suggested by Michael Filonenko, see #12 and #37). - Open transactions are rolled back when pgdb connections are closed (as suggested by Peter Harris, see #46). - Connections and cursors can now be used with the "with" statement (as suggested by Peter Harris, see #46). - New method use_regtypes() that can be called to let getattnames() return regular type names instead of the simplified classic types (#44). To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 pkgsrc/databases/py-postgresql/Makefile cvs rdiff -u -r1.8 -r1.9 pkgsrc/databases/py-postgresql/PLIST cvs rdiff -u -r1.14 -r1.15 pkgsrc/databases/py-postgresql/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.