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

From: Date: Wed, 11 Feb 2004 01:59:30 +0000
Subject: cvs: peardoc /en/package/database/db intro-portability.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2513@lists.php.net to get a copy of this message
danielc Tue Feb 10 20:59:30 2004 EDT Modified files: /peardoc/en/package/database/db intro-portability.xml Log: Change DB_PORTABILITY_CONSTRAINT to DB_PORTABILITY_ERRORS and document accordingly. http://cvs.php.net/diff.php/peardoc/en/package/database/db/intro-portability.xml?r1=1.5&r2=1.6&ty=u Index: peardoc/en/package/database/db/intro-portability.xml diff -u peardoc/en/package/database/db/intro-portability.xml:1.5 peardoc/en/package/database/db/intro-portability.xml:1.6 --- peardoc/en/package/database/db/intro-portability.xml:1.5 Tue Feb 10 00:38:11 2004 +++ peardoc/en/package/database/db/intro-portability.xml Tue Feb 10 20:59:29 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.database.db.intro-portability"> <refnamediv> <refname>Introduction - Portability</refname> @@ -83,15 +83,70 @@ enable hack that makes <function>numRows</function> work in Oracle </para> </listitem> + <listitem> <para> - <constant>DB_PORTABILITY_CONSTRAINT</constant> + <constant>DB_PORTABILITY_ERRORS</constant> </para> <para> - makes MySQL error message for unique/primary key constraints match - those in other DBMS's + makes certain error messages in certain drivers compatible + with those from other DBMS's + </para> + <para> + + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Driver</entry> + <entry>Description</entry> + <entry>Old Constant</entry> + <entry>New Constant</entry> + </row> + </thead> + <tbody> + + <row> + <entry> + mysql, mysql4 + </entry> + <entry> + change unique/primary key constraints + </entry> + <entry> + <constant>DB_ERROR_ALREADY_EXISTS</constant> + </entry> + <entry> + <constant>DB_ERROR_CONSTRAINT</constant> + </entry> + </row> + + <row> + <entry> + odbc(access) + </entry> + <entry> + MS's ODBC driver mistakenly reports 'no such field' as code + <computeroutput>07001</computeroutput>, which means + 'too few parameters.' When this option is on, + that code gets remapped. + </entry> + <entry> + <constant>DB_ERROR_MISMATCH</constant> + </entry> + <entry> + <constant>DB_ERROR_NOSUCHFIELD</constant> + </entry> + </row> + + </tbody> + </tgroup> + </table> + </para> </listitem> + <listitem> <para> <constant>DB_PORTABILITY_ALL</constant>

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