Re: Newbie to Postgres - Urgent query

Поиск
Список
Период
Сортировка
От Dustin Sallings
Тема Re: Newbie to Postgres - Urgent query
Дата
Msg-id 299F740A-484C-11D8-A1D5-000393CFE6B8@spy.net
обсуждение исходный текст
Ответ на Newbie to Postgres - Urgent query  (Ritu Khetan <ritu@netcore.co.in>)
Ответы Re: Newbie to Postgres - Urgent query  (merlyn@stonehenge.com (Randal L. Schwartz))
Список pgsql-general
On Jan 16, 2004, at 1:18, Ritu Khetan wrote:

> $dbh = DBI->connect(DBI:Pg:dbname=dbname, $user_name, $password, {
> RaiseError => 0, PrintError => 0, AutoCommit => 0});

    I've managed to avoid perl for a very long time now, but doesn't
RaiseError => 0 turn off the feature that causes DBI to actively tell
you when you've done something wrong rather than you having to ask
every time you do something if you did it correctly and it was
successful (which you're also not doing)?

    Perhaps it's just style, but I can't think of any case where I'd want
normal execution to continue upon DB error without explicit code to
handle the situation.  Likewise, I certainly wouldn't want to bother
writing extra code every time I require something to succeed.

--
Dustin Sallings


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Drawbacks of using BYTEA for PK?
Следующее
От: Eric Ridge
Дата:
Сообщение: Re: Best Practice for incremental development