Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 39845475A71 for ; Tue, 19 Nov 2002 07:19:47 -0500 (EST) Received: from edison.ioppublishing.com (edison.ioppublishing.com [193.128.223.242]) by postgresql.org (Postfix) with SMTP id 1D580474E44 for ; Tue, 19 Nov 2002 07:19:46 -0500 (EST) Received: (qmail 16846 invoked from network); 19 Nov 2002 12:19:48 -0000 Received: from unknown (HELO localhost.localdomain) (127.0.0.1) by localhost with SMTP; 19 Nov 2002 12:19:48 -0000 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "Peter Haworth" To: David Wheeler , Tom Lane Cc: Tim Bunce , dbi-dev@perl.org, pgsql-interfaces@postgresql.org Subject: Re: DBD::PostgreSQL Date: Tue, 19 Nov 2002 12:19:48 +0000 Message-Id: X-Mailer: PGM v0.17 References: <8F8B367F-FB19-11D6-93B3-0003931A964A@wheeler.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/74 X-Sequence-Number: 3322 On Mon, 18 Nov 2002 09:17:05 -0800, David Wheeler wrote: > On Monday, November 18, 2002, at 09:12 AM, Tom Lane wrote: > > As of 7.3 that's not necessarily so anymore; you can "SET autocommit TO > > off" and get the behavior where any statement starts a transaction block > > (and so an explicit COMMIT is required to commit its effects). Not sure > > if this helps you or not. > > PostgreSQL gets better and better. Yay. However, although I might be able > to use compile-time macros to determine the PostgreSQL version, I have to > support a minimum version of PostsgreSQL in the driver. You'd also need a runtime check that the server you connected to was of a sufficiently high version. I realise it would make things more complicated, but would it be possible to keep the manual transaction starting behaviour, as well as adding the 7.3 behaviour, and deciding which to do based on the server version? Also, I'd like booleans to be returned as 't'/'f', rather than 1/0, to match the behaviour of other drivers. Or at least have a driver-specific flag to control which values get used. -- Peter Haworth pmh@edison.ioppublishing.com "To vacillate or not to vacillate, that is the question ... or is it?"