Skip site navigation (1) Skip section navigation (2)

Re: DBD::PostgreSQL

From: David Wheeler <david(at)wheeler(dot)net>
To: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Cc: dbi-dev(at)perl(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: DBD::PostgreSQL
Date: 2002-11-18 18:09:07
Message-ID: D4AEBF17-FB20-11D6-93B3-0003931A964A@wheeler.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
On Monday, November 18, 2002, at 09:33  AM, Tim Bunce wrote:

>> Okay, then that's what I'll do. Do I check it like this?
>>
>>   if (DBIc_has(imp_dbh, DBIcf_BegunWork)) {...}
>
> Yeap.

Great, thanks. I think I'll set the minimum DBI requirement to 1.20 in 
order to properly support this feature. Any objections, DBIers?

>> would count as an error, I think. DBD::Pg doesn't report it as an
>> error, though -- it just returns false. Should I add an appropriate
>> call to do_error() in such a case?
>
> Probably. It's fairly important that a method doesn't return an error
> status without having recorded the error by at least doing
> 	sv_setiv(DBIc_ERR(imp_xxh), ...)

I'll add the call, then.

Regards,

David

-- 
David Wheeler                                     AIM: dwTheory
david(at)wheeler(dot)net                                 ICQ: 15726394
http://david.wheeler.net/                      Yahoo!: dew7e
                                                Jabber: Theory(at)jabber(dot)org


In response to

pgsql-hackers by date

Next:From: David WheelerDate: 2002-11-18 18:09:37
Subject: Re: DBD::PostgreSQL
Previous:From: Bruno Wolff IIIDate: 2002-11-18 18:08:49
Subject: Re: Getting float8 data into cube?

pgsql-interfaces by date

Next:From: David WheelerDate: 2002-11-18 18:09:37
Subject: Re: DBD::PostgreSQL
Previous:From: David WheelerDate: 2002-11-18 18:07:06
Subject: Re: DBD::PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group