Re: DB_DataObject and 'dont_die'-Option
| From: | Justin Patrin | Date: | Wed, 26 May 2004 16:42:40 +0000 |
| Subject: | Re: DB_DataObject and 'dont_die'-Option | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29707@lists.php.net to get a copy of this message | ||
Markus Tacker wrote:
Hoi, If the DB connection is not present, DataObject will normally die on this error. Well, I wanted to implement my own user notification of this error, so is set the option 'dont_die' to true. Now DataObject doesn't die es expected but keeps on running queries to the DB as the connection ist not checked in some functions (e.g. fillTableSchema()). DB_DataObject::_connect() is expected to handle the connection but in fillTableSchema() is no check if the connection is _really_ there. Maybe I'm just not aware of the right solution for my prob. Any help? Thanks very much.I believe the CVS version has better user-controllable errors. You may want to check it out. -- paperCrane <Justin Patrin>