2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 06:09:30 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:39:12 +00:00
|
|
|
<sect1 xml:id="internals2.pdo.constants" xmlns="http://docbook.org/ns/docbook">
|
2005-10-03 22:02:16 +00:00
|
|
|
<title>Constants</title>
|
2007-06-20 22:39:12 +00:00
|
|
|
<table xml:id="internals2.pdo.table.attributes">
|
2005-10-03 22:02:16 +00:00
|
|
|
<title>Database and Statement Attributes Table</title>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<colspec colname="c1" colwidth="3inch"/>
|
|
|
|
<colspec colname="c2" colwidth="2.7inch"/>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Attribute</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>Valid value(s)</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_AUTOCOMMIT</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>BOOL</para>
|
|
|
|
<para>TRUE if autocommit is set, FALSE otherwise. </para>
|
|
|
|
<para>dbh->auto_commit contains value. Processed by PDO directly.</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_PREFETCH</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>LONG</para>
|
|
|
|
<para>Value of the prefetch size in drivers that support it.</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_TIMEOUT</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>LONG</para>
|
|
|
|
<para>How long to wait for a db operation before timing out.</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_ERRMODE</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>LONG</para>
|
|
|
|
<para>Processed and handled by PDO</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_SERVER_VERSION</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>STRING</para>
|
|
|
|
<para>The <quote>human-readable</quote> string representing the
|
|
|
|
Server/Version this driver is currently connected to.</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_CLIENT_VERSION</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>STRING</para>
|
|
|
|
<para>The <quote>human-readable</quote> string representing the Client/Version this driver supports.</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_SERVER_INFO</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>STRING</para>
|
|
|
|
<para>The <quote>human-readable</quote> description of the Server.</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_CONNECTION_STATUS</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>LONG</para>
|
|
|
|
<para>Values not yet defined</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_CASE</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>LONG</para>
|
|
|
|
<para>Processed and handled by PDO.</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_CURSOR_NAME</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>STRING</para>
|
|
|
|
<para>
|
|
|
|
String representing the name for a database cursor for use in
|
|
|
|
<quote>where current in <name></quote> SQL statements.
|
|
|
|
</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>PDO_ATTR_CURSOR</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>LONG</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>PDO_CURSOR_FWDONLY</term>
|
|
|
|
<listitem>
|
|
|
|
<para>Forward only cursor</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>PDO_CURSOR_SCROLL</term>
|
|
|
|
<listitem>
|
|
|
|
<para>Scrollable cursor</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
<para>
|
|
|
|
The values for the attributes above are all defined in terms of the Zend
|
|
|
|
API. The Zend API contains macros that can be used to convert a *zval to a
|
|
|
|
value. These macros are defined in the Zend header file, zend_API.h in the
|
|
|
|
Zend directory of your PHP build directory. Some of these attributes can be
|
|
|
|
used with the statement attribute handlers such as the PDO_ATTR_CURSOR and
|
|
|
|
PDO_ATTR_CURSOR_NAME. See the statement attribute handling functions for
|
|
|
|
more information.
|
|
|
|
</para>
|
|
|
|
</sect1>
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2005-10-03 22:02:16 +00:00
|
|
|
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
|
|
|
|
-->
|