Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0FDFF475E4D for ; Mon, 18 Nov 2002 12:33:54 -0500 (EST) Received: from mail01.svc.cra.dublin.eircom.net (mail01.svc.cra.dublin.eircom.net [159.134.118.17]) by postgresql.org (Postfix) with SMTP id AD4A04765CC for ; Mon, 18 Nov 2002 12:33:51 -0500 (EST) Received: (qmail 54849 messnum 317429 invoked from network[159.134.165.107/p363.as1.limerick1.eircom.net]); 18 Nov 2002 17:33:56 -0000 Received: from p363.as1.limerick1.eircom.net (HELO dansat.data-plan.com) (159.134.165.107) by mail01.svc.cra.dublin.eircom.net (qp 54849) with SMTP; 18 Nov 2002 17:33:56 -0000 Received: from dansat.data-plan.com (localhost [127.0.0.1]) by dansat.data-plan.com (8.12.6/8.12.6) with ESMTP id gAIHXvOs003257; Mon, 18 Nov 2002 17:33:57 GMT (envelope-from timbo@dansat.data-plan.com) Received: (from timbo@localhost) by dansat.data-plan.com (8.12.6/8.12.6/Submit) id gAIHXudk003256; Mon, 18 Nov 2002 17:33:56 GMT Date: Mon, 18 Nov 2002 17:33:56 +0000 From: Tim Bunce To: David Wheeler Cc: Tim Bunce , dbi-dev@perl.org, pgsql-interfaces@postgresql.org Subject: Re: DBD::PostgreSQL Message-ID: <20021118173356.GE1444@dansat.data-plan.com> References: <20021118101554.GU1408@dansat.data-plan.com> <85B2FBF1-FB16-11D6-93B3-0003931A964A@wheeler.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85B2FBF1-FB16-11D6-93B3-0003931A964A@wheeler.net> User-Agent: Mutt/1.4i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/71 X-Sequence-Number: 3319 On Mon, Nov 18, 2002 at 08:55:20AM -0800, David Wheeler wrote: > On Monday, November 18, 2002, at 02:15 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. > >>* Also in dbd_db_commit() and dbd_db_rollback(), I notice that the > >>last > >>return statement returns 0. Shouldn't these be returning true? > > > >Yes, when using Driver.xst, if there's no error. > > It appears that they return false when imp_dbh->conn is NULL. That > 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'd really appreciate any feedback (ie patches :) you might have > >for the DBI::DBD document. It's a bit thin and/or dated in places. > > Yes, I've thought about that. You can at least expect a bit of clean up > (grammar, etc.), but I might well add more. It'd probably be good to do > so as a newbie who wants to help other newbies along... Great. Thanks. Tim.