reference/pgsql/functions/pg-fetch-assoc.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
4
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.pg-fetch-assoc">
4
+
<refentry xml:id="function.pg-fetch-assoc" xmlns="http://docbook.org/ns/docbook">
5
5
<refnamediv>
6
6
<refname>pg_fetch_assoc</refname>
7
7
<refpurpose>Fetch a row as an associative array</refpurpose>
...
...
@@ -10,9 +10,9 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
-
<type>array</type><methodname>pg_fetch_assoc</methodname>
14
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>row</parameter></methodparam>
13
+
<type class="union"><type>array</type><type>false</type></type><methodname>pg_fetch_assoc</methodname>
14
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>row</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
<function>pg_fetch_assoc</function> returns an associative array that
...
...
@@ -40,11 +40,7 @@
40
40
<varlistentry>
41
41
<term><parameter>result</parameter></term>
42
42
<listitem>
43
-
<para>
44
-
PostgreSQL query result resource, returned by <function>pg_query</function>,
45
-
<function>pg_query_params</function> or <function>pg_execute</function>
46
-
(among others).
47
-
</para>
43
+
&pgsql.parameter.result;
48
44
</listitem>
49
45
</varlistentry>
50
46
<varlistentry>
...
...
@@ -74,6 +70,23 @@
74
70
</para>
75
71
</refsect1>
76
72

73
+
<refsect1 role="changelog">
74
+
&reftitle.changelog;
75
+
<informaltable>
76
+
<tgroup cols="2">
77
+
<thead>
78
+
<row>
79
+
<entry>&Version;</entry>
80
+
<entry>&Description;</entry>
81
+
</row>
82
+
</thead>
83
+
<tbody>
84
+
&pgsql.changelog.result-object;
85
+
</tbody>
86
+
</tgroup>
87
+
</informaltable>
88
+
</refsect1>
89
+

77
90
<refsect1 role="examples">
78
91
&reftitle.examples;
79
92
<para>
...
...
@@ -118,7 +131,6 @@ while ($row = pg_fetch_assoc($result)) {
118
131
</para>
119
132
</refsect1>
120
133
</refentry>
121
-

122
134
<!-- Keep this comment at the end of the file
123
135
Local variables:
124
136
mode: sgml
125
137