Bug #69063 [NEW]: PDO query does not throw exceptions when table missing when FETCH_CLASS used.
| From: | matthew at baggett dot me | Date: | Mon, 16 Feb 2015 20:00:57 +0000 |
| Subject: | Bug #69063 [NEW]: PDO query does not throw exceptions when table missing when FETCH_CLASS used. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-190718@lists.php.net to get a copy of this message | ||
From: matthew at baggett dot me
Operating system:
PHP version: Irrelevant
Package: PDO MySQL
Bug Type: Bug
Bug description:PDO query does not throw exceptions when table missing when FETCH_CLASS used.
Description:
------------
PDO query does not throw exceptions when table missing when FETCH_CLASS
used.
Nothing interesting to see in PDO::errorCode() either.
Test script:
---------------
does not throw exception:
PDO::Query("SELECT tde.* FROM table_doesnt_exist tde",
\PDO::FETCH_CLASS, 'StdClass');
does throw exception:
PDO::Query("SELECT tde.* FROM table_doesnt_exist tde");
--
Edit bug report at https://bugs.php.net/bug.php?id=69063&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69063&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69063&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69063&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69063&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69063&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69063&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69063&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69063&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69063&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69063&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69063&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69063&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69063&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69063&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69063&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69063&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69063&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69063&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69063&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69063&r=mysqlcfg