Re: DBD::PostgreSQL - Mailing list pgsql-interfaces

From David Wheeler
Subject Re: DBD::PostgreSQL
Date
Msg-id D4AEBF17-FB20-11D6-93B3-0003931A964A@wheeler.net
Whole thread Raw
In response to DBD::PostgreSQL  (David Wheeler <david@wheeler.net>)
List pgsql-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@wheeler.net                                 ICQ: 15726394
http://david.wheeler.net/                      Yahoo!: dew7e                                               Jabber:
Theory@jabber.org



pgsql-interfaces by date:

Previous
From: David Wheeler
Date:
Subject: Re: DBD::PostgreSQL
Next
From: David Wheeler
Date:
Subject: Re: DBD::PostgreSQL