mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
87639fa2a9
commit
0b7bab31dd
2 changed files with 13 additions and 3 deletions
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue