Re: Bug #1690 [NEW]: PEAR::DB no catch query() error ? @mysql
| From: | Tomas V.V.Cox | Date: | Mon, 21 Jun 2004 10:58:54 +0000 |
| Subject: | Re: Bug #1690 [NEW]: PEAR::DB no catch query() error ? @mysql | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31015@lists.php.net to get a copy of this message | ||
Donyad At 126 Dot Com wrote:
Reproduce code: --------------- $dsn = 'mysql://root:root@localhost/my_database'; $options = array(if (DB::isError($result)) { // <--!'debug' => 2,'portability' => DB_PORTABILITY_ALL, ); $db = DB::connect($dsn, $options); if(DB::isError($db)){ die($db->getMessage()); } $db->setFetchMode(DB_FETCHMODE_ASSOC); $result = $db->query('select * from my_table where hide=0 order by time desc'); if(DB::isError($db)){ die($db->getMessage()); }
//my_table do not have time field //this sql is error //butPEAR() catch nothing ...Btw, why this bug report ended here? Tomas V.V.Cox