mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-27 14:28:56 +00:00
65 lines
1.9 KiB
XML
65 lines
1.9 KiB
XML
![]() |
<?xml version='1.0' encoding='iso-8859-1'?>
|
||
|
<!-- $Revision: 1.1 $ -->
|
||
|
<!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -->
|
||
|
<refentry id="function.PDO-setAttribute">
|
||
|
<refnamediv>
|
||
|
<refname>PDO::setAttribute</refname>
|
||
|
<refpurpose>
|
||
|
Set an attribute
|
||
|
</refpurpose>
|
||
|
</refnamediv>
|
||
|
<refsect1>
|
||
|
<title>Description</title>
|
||
|
<methodsynopsis>
|
||
|
<type>bool</type><methodname>PDO::setAttribute</methodname>
|
||
|
<methodparam><type>int</type><parameter>attribute</parameter></methodparam>
|
||
|
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
|
||
|
</methodsynopsis>
|
||
|
|
||
|
&warn.experimental.func;
|
||
|
<para>
|
||
|
Sets a database connection attribute. The generic PDO connection attributes
|
||
|
include:
|
||
|
<itemizedlist>
|
||
|
<listitem><para>
|
||
|
<literal>PDO_ATTR_CASE</literal>: Force column names to a specific case.
|
||
|
<itemizedlist>
|
||
|
<listitem><para>
|
||
|
<literal>PDO_CASE_LOWER</literal>: Force column names to lower case.
|
||
|
</para></listitem>
|
||
|
<listitem><para>
|
||
|
<literal>PDO_CASE_NATURAL</literal>: Leave column names as returned by
|
||
|
the database driver.
|
||
|
</para></listitem>
|
||
|
<listitem><para>
|
||
|
<literal>PDO_CASE_UPPER</literal>: Force column names to upper case.
|
||
|
</para></listitem>
|
||
|
</itemizedlist>
|
||
|
</para></listitem>
|
||
|
</itemizedlist>
|
||
|
PDO drivers may define further driver-specific attributes.
|
||
|
</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-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
|
||
|
-->
|