cvs: peardoc /en/package/database/mdb/mdb-common currid.xml
| From: | Lukas Smith | Date: | Thu, 05 Jun 2003 21:56:31 +0000 |
| Subject: | cvs: peardoc /en/package/database/mdb/mdb-common currid.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-887@lists.php.net to get a copy of this message | ||
lsmith Thu Jun 5 17:56:31 2003 EDT
Added files:
/peardoc/en/package/database/mdb/mdb-common currid.xml
Log:
initial version
Index: peardoc/en/package/database/mdb/mdb-common/currid.xml
+++ peardoc/en/package/database/mdb/mdb-common/currid.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.database.mdb.mdb-common.currid">
<refnamediv>
<refname>MDB_Common::currId()</refname>
<refpurpose>returns the current free id of a sequence</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
require_once 'MDB.php';
</funcsynopsisinfo>
<funcprototype>
<funcdef>resource <function>currId</function>
</funcdef>
<paramdef>string <parameter>$seq_name</parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.database.mdb.mdb-common.currid.desc">
&title.desc;
<para>
See <link linkend="package.database.mdb.intro-sequences">
<quote>Introduction - Sequences</quote>
</link>
</para>
</refsect1>
<refsect1 id="package.database.mdb.mdb-common.currid.parameter">
&title.param;
<para>
<variablelist>
<varlistentry>
<term>
&type.string;
<parameter>$seq_name</parameter>
</term>
<listitem>
<para>
name of the sequence
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 id="package.database.mdb.mdb-common.currid.return">
&title.returns;
<para>
<parameter>resource</parameter> - a free id or a
&class.mdb-error;, if fail
</para>
</refsect1>
<refsect1 id="package.database.mdb.mdb-common.currid.throws">
&title.throws;
<para>
<table>
<title>&title.throws.errortable;</title>
<tgroup cols="4">
<thead>
<row>
<entry>Error code</entry>
<entry>Error message</entry>
<entry>Reason</entry>
<entry>Solution</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<constant>MDB_ERROR_NOT_CAPABLE</constant>
</entry>
<entry>
<constant>null</constant>
</entry>
<entry>
Function is not supported by the database backend
</entry>
<entry>
Switch to another database system, if you really
need this feature.
</entry>
</row>
<row>
<entry>
<constant>MDB_ERROR_NOT_LOCKED</constant>
</entry>
<entry>
<constant>null</constant>
</entry>
<entry>
Locking of sequence table fails
</entry>
<entry>
Database specific, check documention of your
database,
</entry>
</row>
<row>
<entry>
<constant>MDB_ERROR_NOSUCHTABLE</constant>
</entry>
<entry>
<constant>null</constant>
</entry>
<entry>
Sequence table was not found
</entry>
<entry>
Try to create a new sequence or if you are sure, a sequence
was already create, check database integrity
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1>
<refsect1 id="package.database.mdb.mdb-common.currid.note">
&title.note;
¬e.notstatic;
</refsect1>
<refsect1 id="package.database.mdb.mdb-common.currid.see">
&title.see;
<para>
<link linkend="package.database.mdb.mdb-common.createsequence">
<function>createSequence</function>
</link>
,<link linkend="package.database.mdb.mdb-common.dropsequence">
<function>dropSequence</function>
</link>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-executeMultiple-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->