reference/pgsql/functions/pg-version.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -12,7 +12,7 @@
12
12
&reftitle.description;
13
13
<methodsynopsis>
14
14
<type>array</type><methodname>pg_version</methodname>
15
-
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>PgSql\Connection</type><type>null</type></type><parameter>connection</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
<function>pg_version</function> returns an array with the client, protocol
...
...
@@ -31,12 +31,7 @@
31
31
<varlistentry>
32
32
<term><parameter>connection</parameter></term>
33
33
<listitem>
34
-
<para>
35
-
PostgreSQL database connection resource. When
36
-
<parameter>connection</parameter> is not present, the default connection
37
-
is used. The default connection is the last connection made by
38
-
<function>pg_connect</function> or <function>pg_pconnect</function>.
39
-
</para>
34
+
&pgsql.parameter.connection-with-nullable-default;
40
35
</listitem>
41
36
</varlistentry>
42
37
</variablelist>
...
...
@@ -47,11 +42,33 @@
47
42
&reftitle.returnvalues;
48
43
<para>
49
44
Returns an array with <literal>client</literal>, <literal>protocol</literal>
50
-
and <literal>server</literal> keys and values (if available). Returns
51
-
&false; on error or invalid connection.
45
+
and <literal>server</literal> keys and values (if available).
52
46
</para>
53
47
</refsect1>
54
48

49
+
<refsect1 role="changelog">
50
+
&reftitle.changelog;
51
+
<informaltable>
52
+
<tgroup cols="2">
53
+
<thead>
54
+
<row>
55
+
<entry>&Version;</entry>
56
+
<entry>&Description;</entry>
57
+
</row>
58
+
</thead>
59
+
<tbody>
60
+
&pgsql.changelog.connection-object;
61
+
<row>
62
+
<entry>8.0.0</entry>
63
+
<entry>
64
+
<parameter>connection</parameter> is now nullable.
65
+
</entry>
66
+
</row>
67
+
</tbody>
68
+
</tgroup>
69
+
</informaltable>
70
+
</refsect1>
71
+
55
72
<refsect1 role="examples">
56
73
&reftitle.examples;
57
74
<para>
...
...
@@ -88,7 +105,6 @@
88
105
</para>
89
106
</refsect1>
90
107
</refentry>
91
-

92
108
<!-- Keep this comment at the end of the file
93
109
Local variables:
94
110
mode: sgml
95
111