reference/pgsql/functions/pg-field-name.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -11,13 +11,13 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>string</type><methodname>pg_field_name</methodname>
14
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
15
-
<methodparam><type>int</type><parameter>field_number</parameter></methodparam>
14
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
15
+
<methodparam><type>int</type><parameter>field</parameter></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
<function>pg_field_name</function> returns the name of the field
19
-
occupying the given <parameter>field_number</parameter> in the
20
-
given PostgreSQL <parameter>result</parameter> resource. Field
19
+
occupying the given <parameter>field</parameter> in the
20
+
given <parameter>result</parameter> instance. Field
21
21
numbering starts from 0.
22
22
</para>
23
23
<note>
...
...
@@ -34,15 +34,11 @@
34
34
<varlistentry>
35
35
<term><parameter>result</parameter></term>
36
36
<listitem>
37
-
<para>
38
-
PostgreSQL query result resource, returned by <function>pg_query</function>,
39
-
<function>pg_query_params</function> or <function>pg_execute</function>
40
-
(among others).
41
-
</para>
37
+
&pgsql.parameter.result;
42
38
</listitem>
43
39
</varlistentry>
44
40
<varlistentry>
45
-
<term><parameter>field_number</parameter></term>
41
+
<term><parameter>field</parameter></term>
46
42
<listitem>
47
43
<para>
48
44
Field number, starting from 0.
...
...
@@ -56,10 +52,27 @@
56
52
<refsect1 role="returnvalues">
57
53
&reftitle.returnvalues;
58
54
<para>
59
-
The field name, or &false; on error.
55
+
The field name.
60
56
</para>
61
57
</refsect1>
62
58

59
+
<refsect1 role="changelog">
60
+
&reftitle.changelog;
61
+
<informaltable>
62
+
<tgroup cols="2">
63
+
<thead>
64
+
<row>
65
+
<entry>&Version;</entry>
66
+
<entry>&Description;</entry>
67
+
</row>
68
+
</thead>
69
+
<tbody>
70
+
&pgsql.changelog.result-object;
71
+
</tbody>
72
+
</tgroup>
73
+
</informaltable>
74
+
</refsect1>
75
+
63
76
<refsect1 role="examples">
64
77
&reftitle.examples;
65
78
<para>
...
...
@@ -118,7 +131,6 @@ field type: varchar
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