reference/pgsql/functions/pg-fetch-all.xml
cfeb14a38b666f6a3fc73da70f4a90fbe115e53f
...
...
@@ -11,12 +11,12 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>array</type><methodname>pg_fetch_all</methodname>
14
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter><initializer>PGSQL_ASSOC</initializer></methodparam>
14
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>PGSQL_ASSOC</constant></initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
<function>pg_fetch_all</function> returns an array that
19
-
contains all rows (records) in the result resource.
19
+
contains all rows (records) in the <classname>PgSql\Result</classname> instance.
20
20
</para>
21
21
&database.fetch-null;
22
22
</refsect1>
...
...
@@ -28,11 +28,13 @@
28
28
<varlistentry>
29
29
<term><parameter>result</parameter></term>
30
30
<listitem>
31
-
<para>
32
-
PostgreSQL query result resource, returned by <function>pg_query</function>,
33
-
<function>pg_query_params</function> or <function>pg_execute</function>
34
-
(among others).
35
-
</para>
31
+
&pgsql.parameter.result;
32
+
</listitem>
33
+
</varlistentry>
34
+
<varlistentry>
35
+
<term><parameter>mode</parameter></term>
36
+
<listitem>
37
+
&pgsql.parameter.mode;
36
38
</listitem>
37
39
</varlistentry>
38
40
</variablelist>
...
...
@@ -45,10 +47,6 @@
45
47
An <type>array</type> with all rows in the result. Each row is an array
46
48
of field values indexed by field name.
47
49
</para>
48
-
<para>
49
-
&false; is returned if there are no rows in the result, or on any
50
-
other error.
51
-
</para>
52
50
</refsect1>
53
51

54
52
<refsect1 role="changelog">
...
...
@@ -63,10 +61,18 @@
63
61
</row>
64
62
</thead>
65
63
<tbody>
64
+
&pgsql.changelog.result-object;
65
+
<row>
66
+
<entry>8.0.0</entry>
67
+
<entry>
68
+
<function>pg_fetch_all</function> will now return an empty &array;
69
+
instead of &false; for result sets with zero rows.
70
+
</entry>
71
+
</row>
66
72
<row>
67
73
<entry>7.1.0</entry>
68
74
<entry>
69
-
The <parameter>result_type</parameter> parameter was added.
75
+
The <parameter>mode</parameter> parameter was added.
70
76
</entry>
71
77
</row>
72
78
</tbody>
...
...
@@ -138,7 +144,6 @@ Array
138
144
</para>
139
145
</refsect1>
140
146
</refentry>
141
-

142
147
<!-- Keep this comment at the end of the file
143
148
Local variables:
144
149
mode: sgml
145
150