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
This commit is contained in:
Herman J. Radtke III 2008-11-22 20:14:45 +00:00
parent 87639fa2a9
commit 0b7bab31dd
2 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry xml:id="pdo.errorcode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>PDO::errorCode</refname>
@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>PDO::errorCode</methodname>
<type>mixed</type><methodname>PDO::errorCode</methodname>
<void/>
</methodsynopsis>
@ -38,6 +38,9 @@
You must call <function>PDOStatement::errorCode</function> to return the error
code for an operation performed on a particular statement handle.
</para>
<para>
Returns &null; if no operation has been run on the database handle.
</para>
</refsect1>
<refsect1 role="examples">

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry xml:id="pdo.errorinfo" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>PDO::errorInfo</refname>
@ -49,6 +49,13 @@
</informaltable>
</para>
<note>
<para>
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;.
</para>
</note>
<para>
<function>PDO::errorInfo</function> only retrieves error information for
operations performed directly on the database handle. If you create a