reference/pgsql/functions/pg-tty.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -13,12 +13,12 @@
13
13
&reftitle.description;
14
14
<methodsynopsis>
15
15
<type>string</type><methodname>pg_tty</methodname>
16
-
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>PgSql\Connection</type><type>null</type></type><parameter>connection</parameter><initializer>&null;</initializer></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
19
<function>pg_tty</function> returns the TTY name that server
20
20
side debugging output is sent to on the given PostgreSQL
21
-
<parameter>connection</parameter> resource.
21
+
<parameter>connection</parameter> instance.
22
22
</para>
23
23
<note>
24
24
<para>
...
...
@@ -36,12 +36,7 @@
36
36
<varlistentry>
37
37
<term><parameter>connection</parameter></term>
38
38
<listitem>
39
-
<para>
40
-
PostgreSQL database connection resource. When
41
-
<parameter>connection</parameter> is not present, the default connection
42
-
is used. The default connection is the last connection made by
43
-
<function>pg_connect</function> or <function>pg_pconnect</function>.
44
-
</para>
39
+
&pgsql.parameter.connection-with-nullable-default;
45
40
</listitem>
46
41
</varlistentry>
47
42
</variablelist>
...
...
@@ -51,11 +46,33 @@
51
46
<refsect1 role="returnvalues">
52
47
&reftitle.returnvalues;
53
48
<para>
54
-
A <type>string</type> containing the debug TTY of
55
-
the <parameter>connection</parameter>, or &false; on error.
49
+
A <type>string</type> containing the debug TTY of the <parameter>connection</parameter>.
56
50
</para>
57
51
</refsect1>
58
52

53
+
<refsect1 role="changelog">
54
+
&reftitle.changelog;
55
+
<informaltable>
56
+
<tgroup cols="2">
57
+
<thead>
58
+
<row>
59
+
<entry>&Version;</entry>
60
+
<entry>&Description;</entry>
61
+
</row>
62
+
</thead>
63
+
<tbody>
64
+
&pgsql.changelog.connection-object;
65
+
<row>
66
+
<entry>8.0.0</entry>
67
+
<entry>
68
+
<parameter>connection</parameter> is now nullable.
69
+
</entry>
70
+
</row>
71
+
</tbody>
72
+
</tgroup>
73
+
</informaltable>
74
+
</refsect1>
75
+
59
76
<refsect1 role="examples">
60
77
&reftitle.examples;
61
78
<para>
...
...
@@ -79,7 +96,6 @@ if ($pgsql_conn) {
79
96
</para>
80
97
</refsect1>
81
98
</refentry>
82
-

83
99
<!-- Keep this comment at the end of the file
84
100
Local variables:
85
101
mode: sgml
86
102