cvs: pear /DB package.xml /DB/DB pgsql.php

From: Date: Fri, 27 May 2005 15:32:34 +0000
Subject: cvs: pear /DB package.xml /DB/DB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32158@lists.php.net to get a copy of this message
danielc Fri May 27 11:32:34 2005 EDT Modified files: /pear/DB package.xml /pear/DB/DB pgsql.php Log: * When inserting to non-existant column in pgsql, produce proper error, "no such field", instead of "no such table". Bug 4365. http://cvs.php.net/diff.php/pear/DB/package.xml?r1=1.185&r2=1.186&ty=u Index: pear/DB/package.xml diff -u pear/DB/package.xml:1.185 pear/DB/package.xml:1.186 --- pear/DB/package.xml:1.185 Mon Apr 11 11:10:18 2005 +++ pear/DB/package.xml Fri May 27 11:32:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <package version="1.0"> - <!-- $Id: package.xml,v 1.185 2005/04/11 15:10:18 danielc Exp $ --> + <!-- $Id: package.xml,v 1.186 2005/05/27 15:32:34 danielc Exp $ --> <name>DB</name> <summary>Database Abstraction Layer</summary> <description> @@ -66,15 +66,14 @@ </maintainer> </maintainers> <release> - <version>1.7.6</version> + <version>1.7.7</version> <state>stable</state> - <date>2005-04-11</date> + <date>pending</date> <notes><![CDATA[ -common: -* Fix the docblocks regarding DB_FETCHMODE_FLIPPED. Bug 4027. - -oic8: -* Provide BC hack for those connecting to oci8 using 'hostspec' instead of 'database'. Bug 4104. +pgsql: +* When inserting to non-existant column, produce + proper error, "no such field", instead of + "no such table". Bug 4365. ]]></notes> <filelist> <file name="DB.php" role="php" baseinstalldir="/"> http://cvs.php.net/diff.php/pear/DB/DB/pgsql.php?r1=1.126&r2=1.127&ty=u Index: pear/DB/DB/pgsql.php diff -u pear/DB/DB/pgsql.php:1.126 pear/DB/DB/pgsql.php:1.127 --- pear/DB/DB/pgsql.php:1.126 Fri Mar 4 18:12:36 2005 +++ pear/DB/DB/pgsql.php Fri May 27 11:32:34 2005 @@ -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: pgsql.php,v 1.126 2005/03/04 23:12:36 danielc Exp $ + * @version CVS: $Id: pgsql.php,v 1.127 2005/05/27 15:32:34 danielc Exp $ * @link http://pear.php.net/package/DB */ @@ -815,12 +815,12 @@ static $error_regexps; if (!isset($error_regexps)) { $error_regexps = array( + '/column .* (of relation .*)?does not exist/i' + => DB_ERROR_NOSUCHFIELD, '/(relation|sequence|table).*does not exist|class .* not found/i' => DB_ERROR_NOSUCHTABLE, '/index .* does not exist/' => DB_ERROR_NOT_FOUND, - '/column .* does not exist/i' - => DB_ERROR_NOSUCHFIELD, '/relation .* already exists/i' => DB_ERROR_ALREADY_EXISTS, '/(divide|division) by zero$/i'

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