Passing error codes through to PDOException
| From: | Joey Smith | Date: | Tue, 12 Jan 2010 03:47:35 +0000 |
| Subject: | Passing error codes through to PDOException | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-46652@lists.php.net to get a copy of this message | ||
Maybe I'm up in the night, but I've just opened 50728 because I discovered that all
the PDO drivers had a hardcoded 0 where I would expect to see the driver-specific
error - a user reported this in ##PHP on Freenode and I take a stab at writing the
patches that would let the individual drivers pass their error code on to the user.
They're attached to the bug as comments (the first against the tip of 5.3.2
[svn #293440] and the second against HEAD [svn #293440]) - but I'm also attaching
them as udiffs to this email.
If there's a reason that the PDOExceptions don't contain their driver-specific
error codes, feel free to ignore this.
Attachment: [text/x-diff] pdo_exception_code_5_3_2.patch
Attachment: [text/x-diff] pdo_exception_code_HEAD.patch
Attachment: [text/x-diff] pdo_exception_code_5_3_2.patch
Attachment: [text/x-diff] pdo_exception_code_HEAD.patch