cvs: peardoc /en/package/database/db/db-common nextid.xml
| From: | Daniel Convissor | Date: | Tue, 24 May 2005 15:55:28 +0000 |
| Subject: | cvs: peardoc /en/package/database/db/db-common nextid.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6082@lists.php.net to get a copy of this message | ||
danielc Tue May 24 11:55:28 2005 EDT
Modified files:
/peardoc/en/package/database/db/db-common nextid.xml
Log:
* Fix return value in synopsis.
* Explain some things for the naive. Bug 4418.
* Some grammar cleanup.
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/nextid.xml?r1=1.24&r2=1.25&ty=u
Index: peardoc/en/package/database/db/db-common/nextid.xml
diff -u peardoc/en/package/database/db/db-common/nextid.xml:1.24
peardoc/en/package/database/db/db-common/nextid.xml:1.25
--- peardoc/en/package/database/db/db-common/nextid.xml:1.24 Thu Feb 17 13:42:06 2005
+++ peardoc/en/package/database/db/db-common/nextid.xml Tue May 24 11:55:25 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.24 $ -->
+<!-- $Revision: 1.25 $ -->
<refentry id="package.database.db.db-common.nextid">
<refnamediv>
@@ -10,7 +10,7 @@
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
- <funcdef>resource <function>nextId</function></funcdef>
+ <funcdef>integer <function>nextId</function></funcdef>
<paramdef>
string <parameter>$seq_name</parameter>
</paramdef>
@@ -48,6 +48,11 @@
<para>
name of the sequence
</para>
+ <para>
+ To avoid problems with various database systems,
+ sequence names should start with a letter and only
+ contain letters, numbers and the underscore character.
+ </para>
</listitem>
</varlistentry>
<varlistentry>
@@ -57,8 +62,15 @@
</term>
<listitem>
<para>
- when &true; the sequence is
- automatic created, if it not exists.
+ When &true;, the sequence is automatically created
+ if it does not exist yet.
+ </para>
+ <para>
+ The on demand creation process necessitates
+ the database user specified in the script
+ having the database permissions needed to create
+ a table or sequence. The exact privileges involved
+ depends on the DBMS being used.
</para>
</listitem>
</varlistentry>