reference/pgsql/functions/pg-dbname.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -11,12 +11,11 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>string</type><methodname>pg_dbname</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_dbname</function> returns the name of the database
18
-
that the given PostgreSQL <parameter>connection</parameter>
19
-
resource.
18
+
that the given PostgreSQL <parameter>connection</parameter> instance.
20
19
</para>
21
20
</refsect1>
22
21

...
...
@@ -27,12 +26,7 @@
27
26
<varlistentry>
28
27
<term><parameter>connection</parameter></term>
29
28
<listitem>
30
-
<para>
31
-
PostgreSQL database connection resource. When
32
-
<parameter>connection</parameter> is not present, the default connection
33
-
is used. The default connection is the last connection made by
34
-
<function>pg_connect</function> or <function>pg_pconnect</function>.
35
-
</para>
29
+
&pgsql.parameter.connection-with-nullable-default;
36
30
</listitem>
37
31
</varlistentry>
38
32
</variablelist>
...
...
@@ -43,10 +37,33 @@
43
37
&reftitle.returnvalues;
44
38
<para>
45
39
A <type>string</type> containing the name of the database the
46
-
<parameter>connection</parameter> is to, or &false; on error.
40
+
<parameter>connection</parameter> is to.
47
41
</para>
48
42
</refsect1>
49
43

44
+
<refsect1 role="changelog">
45
+
&reftitle.changelog;
46
+
<informaltable>
47
+
<tgroup cols="2">
48
+
<thead>
49
+
<row>
50
+
<entry>&Version;</entry>
51
+
<entry>&Description;</entry>
52
+
</row>
53
+
</thead>
54
+
<tbody>
55
+
&pgsql.changelog.connection-object;
56
+
<row>
57
+
<entry>8.0.0</entry>
58
+
<entry>
59
+
<parameter>connection</parameter> is now nullable.
60
+
</entry>
61
+
</row>
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
65
+
</refsect1>
66
+
50
67
<refsect1 role="examples">
51
68
&reftitle.examples;
52
69
<para>
...
...
@@ -66,7 +83,6 @@
66
83
</para>
67
84
</refsect1>
68
85
</refentry>
69
-

70
86
<!-- Keep this comment at the end of the file
71
87
Local variables:
72
88
mode: sgml
73
89