reference/pgsql/functions/pg-field-is-null.xml
39bb8a868935a56cfce438b0169e13c02c93211c
...
...
@@ -11,18 +11,18 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>int</type><methodname>pg_field_is_null</methodname>
14
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
15
-
<methodparam><type>int</type><parameter>row</parameter></methodparam>
14
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
15
+
<methodparam><type class="union"><type>string</type><type>false</type><type>null</type></type><parameter>row</parameter></methodparam>
16
16
<methodparam><type>mixed</type><parameter>field</parameter></methodparam>
17
17
</methodsynopsis>
18
18
<methodsynopsis>
19
19
<type>int</type><methodname>pg_field_is_null</methodname>
20
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
20
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
21
21
<methodparam><type>mixed</type><parameter>field</parameter></methodparam>
22
22
</methodsynopsis>
23
23
<para>
24
-
<function>pg_field_is_null</function> tests if a field in a PostgreSQL
25
-
result resource is SQL <literal>NULL</literal> or not.
24
+
<function>pg_field_is_null</function> tests if a field in an <classname>PgSql\Result</classname> instance
25
+
is SQL <literal>NULL</literal> or not.
26
26
</para>
27
27
<note>
28
28
<para>
...
...
@@ -38,11 +38,7 @@
38
38
<varlistentry>
39
39
<term><parameter>result</parameter></term>
40
40
<listitem>
41
-
<para>
42
-
PostgreSQL query result resource, returned by <function>pg_query</function>,
43
-
<function>pg_query_params</function> or <function>pg_execute</function>
44
-
(among others).
45
-
</para>
41
+
&pgsql.parameter.result;
46
42
</listitem>
47
43
</varlistentry>
48
44
<varlistentry>
...
...
@@ -58,7 +54,7 @@
58
54
<term><parameter>field</parameter></term>
59
55
<listitem>
60
56
<para>
61
-
Field number (starting from 0) as an <type>integer</type> or
57
+
Field number (starting from 0) as an <type>int</type> or
62
58
the field name as a <type>string</type>.
63
59
</para>
64
60
</listitem>
...
...
@@ -75,6 +71,29 @@
75
71
</para>
76
72
</refsect1>
77
73

74
+
<refsect1 role="changelog">
75
+
&reftitle.changelog;
76
+
<informaltable>
77
+
<tgroup cols="2">
78
+
<thead>
79
+
<row>
80
+
<entry>&Version;</entry>
81
+
<entry>&Description;</entry>
82
+
</row>
83
+
</thead>
84
+
<tbody>
85
+
<row>
86
+
<entry>8.3.0</entry>
87
+
<entry>
88
+
<parameter>row</parameter> is now nullable.
89
+
</entry>
90
+
</row>
91
+
&pgsql.changelog.result-object;
92
+
</tbody>
93
+
</tgroup>
94
+
</informaltable>
95
+
</refsect1>
96
+
78
97
<refsect1 role="examples">
79
98
&reftitle.examples;
80
99
<para>
81
100