note 84087 deleted from pdo.errorcode by danbrown
| From: | danbrown@php.net | Date: | Fri, 27 Jun 2008 15:26:27 +0000 |
| Subject: | note 84087 deleted from pdo.errorcode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140877@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
Reason: 1
----
<?php
/* Provoke an error -- the BONES table does not exist */
$dbh->exec("INSERT INTO bones(skull) VALUES ('lucy')");
echo "\nPDO::errorCode(): ";
print $dbh->errorCode();
?>
this example only output "PDO::errorCode(): HY000 " in my env with oracle.