Re: DB error
| From: | Massimiliano Arione | Date: | Thu, 24 Nov 2005 08:49:32 +0000 |
| Subject: | Re: DB error | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22069@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
Actually the isError() call *should work. What is happening here is not necessarily a lost connection. In fact, it most likely isn't that at all. Whether or not the connection is lost $res should still be a valid object and either a valid DB_Result or a PEAR_Error. It should never be a non-object. If something other than either of those 2 objects is returned from ->query then it's a bug.I was talking about lost connection because I noticed it on the same script when I was using a different db class (not the PEAR one) Anyway, the query is just a select with join on big tables Now I will try to add an is_a() before calling fetchRow(), as you suggested, and see what happens next night. -- Massimiliano Arione http://garakkio.altervista.org