reference/pgsql/functions/pg-last-error.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -11,7 +11,7 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>string</type><methodname>pg_last_error</methodname>
14
-
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>PgSql\Connection</type><type>null</type></type><parameter>connection</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>pg_last_error</function> returns the last error message
...
...
@@ -41,12 +41,7 @@
41
41
<varlistentry>
42
42
<term><parameter>connection</parameter></term>
43
43
<listitem>
44
-
<para>
45
-
PostgreSQL database connection resource. When
46
-
<parameter>connection</parameter> is not present, the default connection
47
-
is used. The default connection is the last connection made by
48
-
<function>pg_connect</function> or <function>pg_pconnect</function>.
49
-
</para>
44
+
&pgsql.parameter.connection-with-nullable-default;
50
45
</listitem>
51
46
</varlistentry>
52
47
</variablelist>
...
...
@@ -57,10 +52,33 @@
57
52
&reftitle.returnvalues;
58
53
<para>
59
54
A <type>string</type> containing the last error message on the
60
-
given <parameter>connection</parameter>, or &false; on error.
55
+
given <parameter>connection</parameter>.
61
56
</para>
62
57
</refsect1>
63
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.connection-object;
71
+
<row>
72
+
<entry>8.0.0</entry>
73
+
<entry>
74
+
<parameter>connection</parameter> is now nullable.
75
+
</entry>
76
+
</row>
77
+
</tbody>
78
+
</tgroup>
79
+
</informaltable>
80
+
</refsect1>
81
+

64
82
<refsect1 role="examples">
65
83
&reftitle.examples;
66
84
<para>
...
...
@@ -92,7 +110,6 @@
92
110
</para>
93
111
</refsect1>
94
112
</refentry>
95
-

96
113
<!-- Keep this comment at the end of the file
97
114
Local variables:
98
115
mode: sgml
99
116