cvs: peardoc /en/package/authentication/auth/storage mdb2.xml

From: Date: Fri, 09 Feb 2007 04:55:51 +0000
Subject: cvs: peardoc /en/package/authentication/auth/storage mdb2.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9419@lists.php.net to get a copy of this message
aharvey Fri Feb 9 04:55:51 2007 UTC Modified files: /peardoc/en/package/authentication/auth/storage mdb2.xml Log: Added a note about MDB2's portability settings to help those potentially affected by bug #10059 (Columns in capital). http://cvs.php.net/viewvc.cgi/peardoc/en/package/authentication/auth/storage/mdb2.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/authentication/auth/storage/mdb2.xml diff -u peardoc/en/package/authentication/auth/storage/mdb2.xml:1.3 peardoc/en/package/authentication/auth/storage/mdb2.xml:1.4 --- peardoc/en/package/authentication/auth/storage/mdb2.xml:1.3 Thu Dec 21 05:14:57 2006 +++ peardoc/en/package/authentication/auth/storage/mdb2.xml Fri Feb 9 04:55:50 2007 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.authentication.auth.storage.mdb2"> <refnamediv> <refname>Auth_Container_MDB2</refname> @@ -158,6 +158,30 @@ </table> </para> </refsect1> + <refsect1 id="package.authentication.auth.storage.mdb2.note"> + &title.note; + <para> + By default, MDB2's default portability setting of + <link linkend="package.database.mdb2.intro-portability"><constant>MDB2_PORTABILITY_ALL</constant></link> + is used. This setting may cause unexpected behaviour, such as field names + being converted to lowercase regardless of their definition in the database + schema. The <quote>db_options</quote> option can be used to override this, + as shown in the following example. + </para> + <example> + <title>Example overriding MDB2's default portability</title> + <programlisting role="php"> + <![CDATA[ +$options = array('dsn' => 'mysql://user:password@localhost/database', + 'usernamecol' => 'UserName', + 'passwordcol' => 'PassWord', + 'db_options' => array('portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_FIX_CASE) + ); +$auth = new Auth('MDB2', $options, 'loginFunction'); + ]]> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.pear.doc (#9419) next »