reference/pdo/pdo/lastinsertid.xml
0d4322bcc4b97f4d89aaa1a98887198eeafa9b1f
...
...
@@ -1,4 +1,4 @@
1
-
<?xml version="1.0" encoding="UTF-8"?>
1
+
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<refentry xml:id="pdo.lastinsertid" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
...
...
@@ -9,16 +9,16 @@
9
9
</refnamediv>
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
13
-
<type>string</type><methodname>PDO::lastInsertId</methodname>
14
-
<methodparam choice="opt"><type>string</type><parameter>name</parameter><initializer>&null;</initializer></methodparam>
12
+
<methodsynopsis role="PDO">
13
+
<modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>PDO::lastInsertId</methodname>
14
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>name</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16

17
17
<para>
18
18
Returns the ID of the last inserted row, or the last value from a
19
19
sequence object, depending on the underlying driver. For example,
20
-
<function>PDO_PGSQL</function> requires you to specify the name of
21
-
a sequence object for the <parameter>name</parameter> parameter.
20
+
<link linkend="ref.pdo-pgsql">PDO_PGSQL</link> allows the name of any
21
+
sequence object to be specified for the <parameter>name</parameter> parameter.
22
22
</para>
23
23
<note>
24
24
<para>
...
...
@@ -49,25 +49,29 @@
49
49
&reftitle.returnvalues;
50
50
<para>
51
51
If a sequence name was not specified for the <parameter>name</parameter>
52
-
parameter, <function>PDO::lastInsertId</function> returns a
52
+
parameter, <methodname>PDO::lastInsertId</methodname> returns a
53
53
string representing the row ID of the last row that was inserted into
54
54
the database.
55
55
</para>
56
56
<para>
57
57
If a sequence name was specified for the <parameter>name</parameter>
58
-
parameter, <function>PDO::lastInsertId</function> returns a
58
+
parameter, <methodname>PDO::lastInsertId</methodname> returns a
59
59
string representing the last value retrieved from the specified sequence
60
60
object.
61
61
</para>
62
62
<para>
63
63
If the PDO driver does not support this capability,
64
-
<function>PDO::lastInsertId</function> triggers an
64
+
<methodname>PDO::lastInsertId</methodname> triggers an
65
65
<literal>IM001</literal> SQLSTATE.
66
66
</para>
67
67
</refsect1>
68
68

69
-
</refentry>
69
+
<refsect1 role="errors">
70
+
&reftitle.errors;
71
+
&pdo.errors;
72
+
</refsect1>
70
73

74
+
</refentry>
71
75
<!-- Keep this comment at the end of the file
72
76
Local variables:
73
77
mode: sgml
74
78