reference/pgsql/functions/pg-field-type.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -13,13 +13,13 @@
13
13
&reftitle.description;
14
14
<methodsynopsis>
15
15
<type>string</type><methodname>pg_field_type</methodname>
16
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
17
-
<methodparam><type>int</type><parameter>field_number</parameter></methodparam>
16
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
17
+
<methodparam><type>int</type><parameter>field</parameter></methodparam>
18
18
</methodsynopsis>
19
19
<para>
20
20
<function>pg_field_type</function> returns a string containing the
21
-
base type name of the given <parameter>field_number</parameter> in the
22
-
given PostgreSQL <parameter>result</parameter> resource.
21
+
base type name of the given <parameter>field</parameter> in the
22
+
given <parameter>result</parameter> instance.
23
23
</para>
24
24
<note>
25
25
<para>
...
...
@@ -42,15 +42,11 @@
42
42
<varlistentry>
43
43
<term><parameter>result</parameter></term>
44
44
<listitem>
45
-
<para>
46
-
PostgreSQL query result resource, returned by <function>pg_query</function>,
47
-
<function>pg_query_params</function> or <function>pg_execute</function>
48
-
(among others).
49
-
</para>
45
+
&pgsql.parameter.result;
50
46
</listitem>
51
47
</varlistentry>
52
48
<varlistentry>
53
-
<term><parameter>field_number</parameter></term>
49
+
<term><parameter>field</parameter></term>
54
50
<listitem>
55
51
<para>
56
52
Field number, starting from 0.
...
...
@@ -64,11 +60,27 @@
64
60
<refsect1 role="returnvalues">
65
61
&reftitle.returnvalues;
66
62
<para>
67
-
A <type>string</type> containing the base name of the field's type, or &false;
68
-
on error.
63
+
A <type>string</type> containing the base name of the field's type.
69
64
</para>
70
65
</refsect1>
71
66

67
+
<refsect1 role="changelog">
68
+
&reftitle.changelog;
69
+
<informaltable>
70
+
<tgroup cols="2">
71
+
<thead>
72
+
<row>
73
+
<entry>&Version;</entry>
74
+
<entry>&Description;</entry>
75
+
</row>
76
+
</thead>
77
+
<tbody>
78
+
&pgsql.changelog.result-object;
79
+
</tbody>
80
+
</tgroup>
81
+
</informaltable>
82
+
</refsect1>
83
+
72
84
<refsect1 role="examples">
73
85
&reftitle.examples;
74
86
<para>
...
...
@@ -107,7 +119,6 @@ Title field type: varchar
107
119
</para>
108
120
</refsect1>
109
121
</refentry>
110
-

111
122
<!-- Keep this comment at the end of the file
112
123
Local variables:
113
124
mode: sgml
114
125