Re: DB stuff

From: Date: Mon, 26 Mar 2001 19:51:12 +0000
Subject: Re: DB stuff
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-102@lists.php.net to get a copy of this message
Colin Viebrock wrote: > > I don't understand the last point though. If fetchInto() *does* return > an object, are we using that as the indication there was an error? > Instead of: > > if (is_object($res)) { > > Why not: > > if ($res !== DB_OK) { > > (Although there is a condition where the fetchInto will fail, and return > NULL instead of an error ... don't know how we want to catch that) Validating againts DB_OK, null values are also returned, so it's the best solution I think. Tomas V.V.Cox

« previous php.pear.dev (#102) next »