Re: DBD::PostgreSQL

Поиск
Список
Период
Сортировка
От Peter Haworth
Тема Re: DBD::PostgreSQL
Дата
Msg-id PGM.20021119121948.8441.2705@edison.ioppublishing.com
обсуждение исходный текст
Ответ на Re: DBD::PostgreSQL  (David Wheeler <david@wheeler.net>)
Ответы Re: DBD::PostgreSQL  (David Wheeler <david@wheeler.net>)
Список pgsql-interfaces
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?"


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Rudy Lippan
Дата:
Сообщение: Re: DBD::PostgreSQL
Следующее
От: David Wheeler
Дата:
Сообщение: Re: DBD::PostgreSQL