Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.3

Bug #1690 PEAR::DB no catch query() error ? @mysql
Submitted: 2004-06-21 09:32 UTC
From: donyad at 126 dot com Assigned:
Status: Bogus Package: DB
PHP Version: 4.3.7 OS: WinXP
Roadmaps: (Not assigned)    
Subscription  


 [2004-06-21 09:32 UTC] donyad at 126 dot com
Description: ------------ when i query a wrong sql at mysql PEAR::DB do not report me sql error just PHP report me the next function was undefined ... the DB class just download today DB-1[1].6.4.tgz Reproduce code: --------------- $dsn = 'mysql://root:root@localhost/my_database'; $options = array( '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 ... Expected result: ---------------- wish it act as phplib

Comments

 [2004-06-21 11:28 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-06-21 18:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-06-22 04:23 UTC] donyad at 126 dot com
got it 3x very much
 [2004-06-22 04:47 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!