reference/pgsql/functions/pg-last-oid.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -10,8 +10,8 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
-
<type>string</type><methodname>pg_last_oid</methodname>
14
-
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
13
+
<type class="union"><type>string</type><type>int</type><type>false</type></type><methodname>pg_last_oid</methodname>
14
+
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>pg_last_oid</function> is used to retrieve the
...
...
@@ -50,11 +50,7 @@
50
50
<varlistentry>
51
51
<term><parameter>result</parameter></term>
52
52
<listitem>
53
-
<para>
54
-
PostgreSQL query result resource, returned by <function>pg_query</function>,
55
-
<function>pg_query_params</function> or <function>pg_execute</function>
56
-
(among others).
57
-
</para>
53
+
&pgsql.parameter.result;
58
54
</listitem>
59
55
</varlistentry>
60
56
</variablelist>
...
...
@@ -64,12 +60,29 @@
64
60
<refsect1 role="returnvalues">
65
61
&reftitle.returnvalues;
66
62
<para>
67
-
A <type>string</type> containing the OID assigned to the most recently inserted
63
+
An <type>int</type> or <type>string</type> containing the OID assigned to the most recently inserted
68
64
row in the specified <parameter>connection</parameter>, or &false; on error or
69
65
no available OID.
70
66
</para>
71
67
</refsect1>
72
68

69
+
<refsect1 role="changelog">
70
+
&reftitle.changelog;
71
+
<informaltable>
72
+
<tgroup cols="2">
73
+
<thead>
74
+
<row>
75
+
<entry>&Version;</entry>
76
+
<entry>&Description;</entry>
77
+
</row>
78
+
</thead>
79
+
<tbody>
80
+
&pgsql.changelog.result-object;
81
+
</tbody>
82
+
</tgroup>
83
+
</informaltable>
84
+
</refsect1>
85
+

73
86
<refsect1 role="examples">
74
87
&reftitle.examples;
75
88
<para>
...
...
@@ -105,7 +118,6 @@
105
118
</para>
106
119
</refsect1>
107
120
</refentry>
108
-

109
121
<!-- Keep this comment at the end of the file
110
122
Local variables:
111
123
mode: sgml
112
124