vrana Tue Jul 27 14:48:22 2004 EDT
Modified files:
/phpdoc/en/reference/pgsql/functions pg-result-error.xml
Log:
How to use (bug #18747)
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.2
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.3
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.2 Wed Apr 17 02:43:22
2002
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xml Tue Jul 27 14:48:22
2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -->
<refentry id='function.pg-result-error'>
<refnamediv>
@@ -19,6 +19,11 @@
associated with <parameter>result</parameter> resource. Therefore,
user has better chance to get better error message than
<function>pg_last_error</function>.
+ </para>
+ <para>
+ Because <function>pg_query</function> returns &false; if the query fails,
+ you must must use <function>pg_send_query</function> and
+ <function>pg_get_result</function> to get the result handle.
</para>
<para>
See also <function>pg_query</function>,