cvs: pear /DB package.xml /DB/DB sybase.php /DB/tests errors.inc

From: Date: Tue, 06 Feb 2007 06:05:01 +0000
Subject: cvs: pear /DB package.xml /DB/DB sybase.php /DB/tests errors.inc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44557@lists.php.net to get a copy of this message
aharvey Tue Feb 6 06:05:01 2007 UTC Modified files: /pear/DB package.xml /pear/DB/DB sybase.php /pear/DB/tests errors.inc Log: Added divide by zero error mapping for Sybase driver. http://cvs.php.net/viewvc.cgi/pear/DB/package.xml?r1=1.223&r2=1.224&diff_format=u Index: pear/DB/package.xml diff -u pear/DB/package.xml:1.223 pear/DB/package.xml:1.224 --- pear/DB/package.xml:1.223 Mon Jan 29 00:48:22 2007 +++ pear/DB/package.xml Tue Feb 6 06:05:01 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <package version="1.0"> - <!-- $Id: package.xml,v 1.223 2007/01/29 00:48:22 aharvey Exp $ --> + <!-- $Id: package.xml,v 1.224 2007/02/06 06:05:01 aharvey Exp $ --> <name>DB</name> <summary>Database Abstraction Layer</summary> <description> @@ -66,68 +66,14 @@ </maintainer> </maintainers> <release> - <version>1.7.8</version> + <version>1.7.9</version> <state>stable</state> - <date>2007-01-29</date> + <date>pending</date> <notes><![CDATA[ -This release of DB fixes numerous bugs compared to 1.7.7. Users of previous -versions are encouraged to upgrade in due course. +This release of DB fixes minor bugs within the Sybase driver. -Users of the pgsql driver should note that this release fixes a security issue -reported by Yasuo Ohgaki; the security issue is described in more detail by -CVE-2006-2313 and CVE-2006-2314. PostgreSQL users should upgrade to both DB -1.7.8 AND at least PostgreSQL 7.3.15, 7.4.13, 8.0.8, 8.1.4 or 8.2.0 as soon as -possible if they are using SJIS, BIG5, GBK, GB18030 or UHC as a client -encoding. - -This release is identical to 1.7.8RC2. The full change log from 1.7.7 to 1.7.8 -follows. - -DB: -* Added code to DB_result::numRows() to return correct results when limit -emulation is being used. Bug 4649. -* Added DB::getDSNString() to allow pretty-printing of both string and array -DSNs, thereby improving the output of DB::connect() on error. Bug 3759. -* Added DB_common::nextQueryIsManip() to explicitly hint that the next query is -a manipulation query and therefore ignore DB::isManip(). Bug 3895. -* Changed all freeResult() methods to check that the parameter is a resource -before calling the native function to free the result. Bug 5762. -* Fixed DB_result::fetch*() to only increment their internal row_counters when -a row number has not been provided. Bug 7502. -* Fixed quoting of float values to always have the decimal point as a point, -rather than a comma, irrespective of locale. Bug 3021. -* Silenced errors on ini_set calls. Bug 4915. -* Tweaked DB::isManip() to attempt to deal with SELECT queries that include the - word INTO in a non-keyword context. Bug 9869. - -fbsql: -* Fix DB_result::numRows() to return the correct value for limit queries. - -ibase: -* Handled cases where ibase_prepare returns false. Bug 8217. - -ifx: -* Altered simpleQuery() to treat EXECUTE queries as being data-returning. -Bug 5204. - -mssql: -* Altered nextId() to use IDENT_CURRENT instead of @@IDENTITY, thereby -resolving problems with concurrent nextId() calls. Bug 181. - -mysqli: -* Added the mysterious 246 data type to the type map. Bug 6477. -* Allowed the ssl option to be an integer. Bug 5657. - -oci8: -* Added tracking of prepared queries to ensure that last_query is set properly -even when there are multiple prepared queries at a given time. Bug 7632. -* Altered connect() to handle non-standard ports. Thanks to Lukas Smith for the -patch. Bug 7216. -* Altered numRows() to properly restore last_query state. Bug 4388. - -pgsql: -* Added schema support to _pgFieldFlags. Bug 5796. -* Updated pgsql escaping to use pg_escape_string when available. +sybase: +* Added divide by zero error mapping. ]]></notes> <filelist> <file name="DB.php" role="php" baseinstalldir="/"> http://cvs.php.net/viewvc.cgi/pear/DB/DB/sybase.php?r1=1.82&r2=1.83&diff_format=u Index: pear/DB/DB/sybase.php diff -u pear/DB/DB/sybase.php:1.82 pear/DB/DB/sybase.php:1.83 --- pear/DB/DB/sybase.php:1.82 Fri Jan 12 03:11:17 2007 +++ pear/DB/DB/sybase.php Tue Feb 6 06:05:01 2007 @@ -21,7 +21,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: sybase.php,v 1.82 2007/01/12 03:11:17 aharvey Exp $ + * @version CVS: $Id: sybase.php,v 1.83 2007/02/06 06:05:01 aharvey Exp $ * @link http://pear.php.net/package/DB */ @@ -679,6 +679,8 @@ => DB_ERROR_ALREADY_EXISTS, '/^There are fewer columns in the INSERT statement than values specified/i' => DB_ERROR_VALUE_COUNT_ON_ROW, + '/Divide by zero/i' + => DB_ERROR_DIVZERO, ); } http://cvs.php.net/viewvc.cgi/pear/DB/tests/errors.inc?r1=1.37&r2=1.38&diff_format=u Index: pear/DB/tests/errors.inc diff -u pear/DB/tests/errors.inc:1.37 pear/DB/tests/errors.inc:1.38 --- pear/DB/tests/errors.inc:1.37 Fri Jan 5 06:58:34 2007 +++ pear/DB/tests/errors.inc Tue Feb 6 06:05:01 2007 @@ -18,7 +18,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version $Id: errors.inc,v 1.37 2007/01/05 06:58:34 aharvey Exp $ + * @version $Id: errors.inc,v 1.38 2007/02/06 06:05:01 aharvey Exp $ * @link http://pear.php.net/package/DB */ @@ -319,9 +319,6 @@ case 'mysql': case 'mysqli': case 'sqlite': - case 'sybase': - check_error($res, DB_ERROR_DIVZERO, false); - break; case 'msql': check_error($res, DB_ERROR_SYNTAX); break;

« previous php.pear.cvs (#44557) next »