reference/pgsql/functions/pg-last-notice.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -->
4
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.pg-last-notice">
4
+
<refentry xml:id="function.pg-last-notice" xmlns="http://docbook.org/ns/docbook">
5
5
<refnamediv>
6
6
<refname>pg_last_notice</refname>
7
7
<refpurpose>
...
...
@@ -12,9 +12,9 @@
12
12
<refsect1 role="description">
13
13
&reftitle.description;
14
14
<methodsynopsis>
15
-
<type>mixed</type><methodname>pg_last_notice</methodname>
16
-
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
17
-
<methodparam choice="opt"><type>int</type><parameter>option</parameter><initializer>PGSQL_NOTICE_LAST</initializer></methodparam>
15
+
<type class="union"><type>array</type><type>string</type><type>bool</type></type><methodname>pg_last_notice</methodname>
16
+
<methodparam><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
17
+
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>PGSQL_NOTICE_LAST</constant></initializer></methodparam>
18
18
</methodsynopsis>
19
19
<para>
20
20
<function>pg_last_notice</function> returns the last notice
...
...
@@ -46,13 +46,11 @@
46
46
<varlistentry>
47
47
<term><parameter>connection</parameter></term>
48
48
<listitem>
49
-
<para>
50
-
PostgreSQL database connection resource.
51
-
</para>
49
+
&pgsql.parameter.connection;
52
50
</listitem>
53
51
</varlistentry>
54
52
<varlistentry>
55
-
<term><parameter>option</parameter></term>
53
+
<term><parameter>mode</parameter></term>
56
54
<listitem>
57
55
<para>
58
56
One of <constant>PGSQL_NOTICE_LAST</constant> (to return last notice),
...
...
@@ -72,8 +70,7 @@
72
70
given <parameter>connection</parameter> with
73
71
<constant>PGSQL_NOTICE_LAST</constant>,
74
72
an <type>array</type> with <constant>PGSQL_NOTICE_ALL</constant>,
75
-
a <type>bool</type> with <constant>PGSQL_NOTICE_CLEAR</constant>,
76
-
or &false; on error.
73
+
a <type>bool</type> with <constant>PGSQL_NOTICE_CLEAR</constant>.
77
74
</para>
78
75
</refsect1>
79
76
...
...
@@ -89,10 +86,11 @@
89
86
</row>
90
87
</thead>
91
88
<tbody>
89
+
&pgsql.changelog.connection-object;
92
90
<row>
93
91
<entry>7.1.0</entry>
94
92
<entry>
95
-
The <parameter>option</parameter> parameter was added.
93
+
The <parameter>mode</parameter> parameter was added.
96
94
</entry>
97
95
</row>
98
96
</tbody>
...
...
@@ -140,7 +138,6 @@ CREATE TABLE will create implicit sequence "test_id_seq" for "serial" column "te
140
138
</refsect1>
141
139

142
140
</refentry>
143
-

144
141
<!-- Keep this comment at the end of the file
145
142
Local variables:
146
143
mode: sgml
147
144