1
0
mirror of https://github.com/php/doc-zh.git synced 2026-04-25 17:18:15 +02:00
Files
archived-doc-zh/reference/pgsql/functions/pg-last-error.xml
T
Dallas Wang 9a2f55cb0a Correct Line-endings.
git-svn-id: https://svn.php.net/repository/phpdoc/zh/trunk@97440 c90b9560-bf6c-de11-be94-00142212c4b1
2002-09-30 03:25:33 +00:00

56 lines
1.7 KiB
XML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.2 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
<refentry id="function.pg-last-error">
<refnamediv>
<refname>pg_last_error</refname>
<refpurpose>得到某连接的最后一条错误信息</refpurpose>
</refnamediv>
<refsect1>
<title>说明</title>
<methodsynopsis>
<type>string</type><methodname>pg_last_error</methodname>
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_last_error</function> 返回指定连接 <parameter>connection</parameter> 的最后一条错误信息。
</para>
<para>
错误信息可能会被 PostgreSQL(libpq) 的内部函数调用所覆盖。如果 PostgreSQL 的内部模块函数产生了多个错误,则可能不能返回适当的错误信息。
</para>
<para>
使用 <function>pg_result_error</function><function>pg_result_status</function><function>pg_connection_status</function> 来取得更好的错误处理。
</para>
<note>
<para>
本函数以前的名字为 <literal>pg_errormessage()</literal>
</para>
</note>
<para>
参见 <function>pg_result_error</function>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->