pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Haworth <pmh@edison.ioppublishing.com>
To: David Wheeler <david@wheeler.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Tim Bunce <Tim.Bunce@pobox.com>
Cc: dbi-dev@perl.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: DBD::PostgreSQL
Date: Tue, 19 Nov 2002 12:19:48 +0000
Message-ID: <PGM.20021119121948.8441.2705@edison.ioppublishing.com> (raw)
References: <8F8B367F-FB19-11D6-93B3-0003931A964A@wheeler.net>

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?"



view thread (35+ messages)  latest in thread

Message-ID: <PGM.20021119121948.8441.2705@edison.ioppublishing.com>
Permalink:  ../PGM.20021119121948.8441.2705@edison.ioppublishing.com/
Also on:    postgresql.org/message-id/PGM.20021119121948.8441.2705@edison.ioppublishing.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pmh@edison.ioppublishing.com, david@wheeler.net, tgl@sss.pgh.pa.us, Tim.Bunce@pobox.com, dbi-dev@perl.org
  Subject: Re: DBD::PostgreSQL
  In-Reply-To: <PGM.20021119121948.8441.2705@edison.ioppublishing.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox