reference/pgsql/functions/pg-affected-rows.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -11,7 +11,7 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>int</type><methodname>pg_affected_rows</methodname>
14
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
14
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>pg_affected_rows</function> returns the number of tuples
...
...
@@ -37,11 +37,7 @@
37
37
<varlistentry>
38
38
<term><parameter>result</parameter></term>
39
39
<listitem>
40
-
<para>
41
-
PostgreSQL query result resource, returned by <function>pg_query</function>,
42
-
<function>pg_query_params</function> or <function>pg_execute</function>
43
-
(among others).
44
-
</para>
40
+
&pgsql.parameter.result;
45
41
</listitem>
46
42
</varlistentry>
47
43
</variablelist>
...
...
@@ -51,11 +47,28 @@
51
47
<refsect1 role="returnvalues">
52
48
&reftitle.returnvalues;
53
49
<para>
54
-
The number of rows affected by the query. If no tuple is
55
-
affected, it will return 0.
50
+
The number of rows affected by the query. If no tuple is
51
+
affected, it will return <literal>0</literal>.
56
52
</para>
57
53
</refsect1>
58
54

55
+
<refsect1 role="changelog">
56
+
&reftitle.changelog;
57
+
<informaltable>
58
+
<tgroup cols="2">
59
+
<thead>
60
+
<row>
61
+
<entry>&Version;</entry>
62
+
<entry>&Description;</entry>
63
+
</row>
64
+
</thead>
65
+
<tbody>
66
+
&pgsql.changelog.result-object;
67
+
</tbody>
68
+
</tgroup>
69
+
</informaltable>
70
+
</refsect1>
71
+
59
72
<refsect1 role="examples">
60
73
&reftitle.examples;
61
74
<para>
62
75