cvs: peardoc /en/package/database/mdb2 intro-portability.xml

From: Date: Tue, 17 Apr 2007 16:18:47 +0000
Subject: cvs: peardoc /en/package/database/mdb2 intro-portability.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9644@lists.php.net to get a copy of this message
quipo Tue Apr 17 16:18:47 2007 UTC Modified files: /peardoc/en/package/database/mdb2 intro-portability.xml Log: added some portability notes http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-portability.xml?r1=1.12&r2=1.13&diff_format=u Index: peardoc/en/package/database/mdb2/intro-portability.xml diff -u peardoc/en/package/database/mdb2/intro-portability.xml:1.12 peardoc/en/package/database/mdb2/intro-portability.xml:1.13 --- peardoc/en/package/database/mdb2/intro-portability.xml:1.12 Sun Jan 21 23:29:36 2007 +++ peardoc/en/package/database/mdb2/intro-portability.xml Tue Apr 17 16:18:47 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <refentry id="package.database.mdb2.intro-portability"> <refnamediv> @@ -10,7 +10,7 @@ <refsect1 id="package.database.mdb2.intro-portability.desc"> &title.desc; <para> - Each database management system (DBMS) has it's own behaviors. + Each database management system (DBMS) has its own behaviour. For example, some databases capitalize field names in their output, some lowercase them, while others leave them alone. These quirks make it difficult to port your scripts over to another server type. @@ -31,6 +31,13 @@ <literal>|</literal> and removed using <literal>^</literal>. See the examples section below on how to do this. </para> + <para> + NB: MDB2 portability modes are meant to change the behaviour of the returned + values only, not that of the query itself. For instance, if you created your + tables quoting the identifiers, remember to use the <function>quoteIdentifier</function> + method in all your queries or you'll get "not found" or "not exists" errors. + Also check for the <parameter>quote_identifier</parameter> option, + if it's false then quoting won't be applied if the check_option is used. </refsect1> <refsect1 id="package.database.mdb2.intro-portability.constants"> @@ -147,8 +154,11 @@ </para> <para> Convert names of tables and fields to lower or upper case in all methods. - The case depends on the 'field_case' option that may be set to either - <constant>CASE_LOWER</constant> (default) or <constant>CASE_UPPER</constant> + The case depends on the <parameter>field_case</parameter> option that may + be set to either <constant>CASE_LOWER</constant> (default) or + <constant>CASE_UPPER</constant>. + NB: the case change is applied to the returned values only, not to + the field and table names in the query. </para> </listitem> <listitem>

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