1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<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:"../../../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
-->
|