yohgaki Wed Apr 24 20:41:42 2002 EDT
Modified files:
/phpdoc/en/reference/pgsql/functions pg-fetch-object.xml
Log:
Removed descrption for result_type. It's just does not make send and
does not work. (e.g. number is not a valid property name)
row can be optional from 4.2.0.
Index: phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml:1.2
phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml:1.3
--- phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml:1.2 Wed Apr 17 02:43:18
2002
+++ phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml Wed Apr 24 20:41:40
+2002
@@ -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.2 -->
<refentry id="function.pg-fetch-object">
<refnamediv>
@@ -12,7 +12,6 @@
<type>object</type><methodname>pg_fetch_object</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>row</parameter></methodparam>
- <methodparam
choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_fetch_object</function> returns an object with
@@ -27,21 +26,14 @@
their offsets (numbers are illegal property names).
</para>
<para>
- <parameter>result_type</parameter> is optional parameter controls
- how return value is initialized.
- <parameter>result_type</parameter> is a constant and can take the
- following values: PGSQL_ASSOC, PGSQL_NUM, and PGSQL_BOTH.
- <function>pg_fetch_array</function> returns associative array
- that has field name as key for PGSQL_ASSOC. field index as key
- with PGSQL_NUM and both field name/index as key with
- PGSQL_BOTH. Default is PGSQL_BOTH.
+ <parameter>row</parameter> is row (record) number to be
+ retrieved. First row is 0.
</para>
<para>
- <note>
- <para>
- <parameter>result_type</parameter> was added in PHP 4.0.
- </para>
- </note>
+ From PHP 4.2.0, <parameter>row</parameter> can be optional.
+ Calling <function>pg_fetch_result</function> will incremented
+ internal row counter, that is associated with the <parameter>result</parameter>,
+ counter by 1.
</para>
<para>
Speed-wise, the function is identical to