|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2014-01-01 12:33 UTC] felipe@php.net
-Package: PDO related
+Package: PDO PgSQL
[2014-06-04 09:01 UTC] mbeccati@php.net
-Summary: errorInfo doesn't cleans up
properly
+Summary: errorInfo is not properly cleaned
up
-Status: Open
+Status: Verified
-Package: PDO PgSQL
+Package: PDO Core
-Operating System: FreeBSD 8.2
+Operating System: Irrelevant
[2014-06-04 09:01 UTC] mbeccati@php.net
[2015-10-19 00:58 UTC] stas@php.net
[2015-10-19 00:58 UTC] stas@php.net
-Status: Verified
+Status: Closed
[2015-10-19 00:58 UTC] stas@php.net
[2016-07-20 11:35 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 02:00:01 2025 UTC |
Description: ------------ Affects at least PgSQL driver (MySQL works fine). Workflow: 1. Make invalid query - errorInfo()[2] contains error info. Error code is not zero. 2. Make valid query - errorInfo()[2] still contains an error from the first step (but error code is 0). pdo_pgsql: libpq version 9.0.8 Module version: 1.0.2 Test script: --------------- $pdo->exec("SELECT * FROM bad_table;"); echo $pdo->errorInfo()[2]; // "relation bad_table doesn't exist" $pdo->exec("SELECT * FROM good_table;"); echo $pdo->errorInfo()[2]; // "relation bad_table doesn't exist". Expected "". Expected result: ---------------- "" Actual result: -------------- "relation bad_table doesn't exist"