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  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2004-06-22 04:47 UTC
Package:
Bug Type:
Summary:
From: donyad at 126 dot com
New email:
PHP Version: Package Version: OS:

 

 [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!