From 0b7bab31dd2dddbd1048b355de22556b952d21c2 Mon Sep 17 00:00:00 2001 From: "Herman J. Radtke III" Date: Sat, 22 Nov 2008 20:14:45 +0000 Subject: [PATCH] Added note to PDO->errorInfo() return value section to explain changes related (bug #44154). Updated PDO->errorCode() return value section to document the case where the handle has performed no operations and PDO->errorCode() is called (bug #44153). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@269535 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdo/pdo/errorcode.xml | 7 +++++-- reference/pdo/pdo/errorinfo.xml | 9 ++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/reference/pdo/pdo/errorcode.xml b/reference/pdo/pdo/errorcode.xml index 12c74bd0b4..9ba112d2a2 100644 --- a/reference/pdo/pdo/errorcode.xml +++ b/reference/pdo/pdo/errorcode.xml @@ -1,5 +1,5 @@ - + PDO::errorCode @@ -10,7 +10,7 @@ &reftitle.description; - stringPDO::errorCode + mixedPDO::errorCode @@ -38,6 +38,9 @@ You must call PDOStatement::errorCode to return the error code for an operation performed on a particular statement handle. + + Returns &null; if no operation has been run on the database handle. + diff --git a/reference/pdo/pdo/errorinfo.xml b/reference/pdo/pdo/errorinfo.xml index 69ce7249d9..9a080386d4 100644 --- a/reference/pdo/pdo/errorinfo.xml +++ b/reference/pdo/pdo/errorinfo.xml @@ -1,5 +1,5 @@ - + PDO::errorInfo @@ -49,6 +49,13 @@ + + + If the SQLSTATE error code is not set or there is no driver-specific + error, the elements following element 0 will be set to &null;. + + + PDO::errorInfo only retrieves error information for operations performed directly on the database handle. If you create a