php-doc-en/reference/maxdb/constants.xml
Daniel Egeberg 96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00

151 lines
4.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<appendix xml:id="maxdb.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
&extension.constants;
<para>
The following constants to use with <function>maxdb_options</function> are defined.
For further description of these constants see
<link xlink:href="&url.maxdb.doc;">&url.maxdb.doc;</link>.
<table>
<title>MaxDB PHP client constants</title>
<tgroup cols="2">
<thead>
<row>
<entry>Constant</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>MAXDB_COMPNAME</entry>
<entry>The component name used to initialise the SQLDBC runtime environment.</entry>
</row>
<row>
<entry>MAXDB_APPLICATION</entry>
<entry>The application to be connected to the database.</entry>
</row>
<row>
<entry>MAXDB_APPVERSION</entry>
<entry>The version of the application.</entry>
</row>
<row>
<entry>MAXDB_SQLMODE</entry>
<entry>The SQL mode.</entry>
</row>
<row>
<entry>MAXDB_UNICODE</entry>
<entry>TRUE, if the connection is an unicode (UCS2) client or FALSE, if not.</entry>
</row>
<row>
<entry>MAXDB_TIMEOUT</entry>
<entry>
The maximum allowed time of inactivity after which the connection to the
database is closed by the system.
</entry>
</row>
<row>
<entry>MAXDB_ISOLATIONLEVEL</entry>
<entry>
Specifies whether and how shared locks and exclusive locks are implicitly
requested or released.
</entry>
</row>
<row>
<entry>MAXDB_PACKETCOUNT</entry>
<entry>
The number of different request packets used for the connection.
</entry>
</row>
<row>
<entry>MAXDB_STATEMENTCACHESIZE</entry>
<entry>
The number of prepared statements to be cached for the connection for re-use.
</entry>
</row>
<row>
<entry>MAXDB_CURSORPREFIX</entry>
<entry>
The prefix to use for result tables that are automatically named.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
The function <function>maxdb_fetch_array</function> uses a constant for
the different types of result arrays. The following constants are
defined:
<table>
<title>MaxDB fetch constants</title>
<tgroup cols="2">
<thead>
<row>
<entry>Constant</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>MAXDB_ASSOC</entry>
<entry>
Columns are returned into the array having the fieldname as the array
index.
</entry>
</row>
<row>
<entry>MAXDB_ASSOC_UPPER</entry>
<entry>
Columns are returned into the array having the upper case fieldname as the array
index.
</entry>
</row>
<row>
<entry>MAXDB_ASSOC_LOWER</entry>
<entry>
Columns are returned into the array having the lower case fieldname as the array
index.
</entry>
</row>
<row>
<entry>MAXDB_BOTH</entry>
<entry>
Columns are returned into the array having both a numerical index
and the fieldname as the array index.
</entry>
</row>
<row>
<entry>MAXDB_NUM</entry>
<entry>
Columns are returned into the array having a numerical index to the
fields. This index starts with 0, the first field in the result.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</appendix>
<!-- 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-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/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
-->