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

From: Date: Fri, 12 Jan 2007 02:47:00 +0000
Subject: cvs: pear /DB package.xml /DB/DB ifx.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44186@lists.php.net to get a copy of this message
aharvey Fri Jan 12 02:47:00 2007 UTC Modified files: /pear/DB package.xml /pear/DB/DB ifx.php Log: Altered DB_ifx::simpleQuery() to treat EXECUTE queries as being data-returning. Fixes bug #5204 (Informix driver does not support stored procedures returning values). http://cvs.php.net/viewvc.cgi/pear/DB/package.xml?r1=1.217&r2=1.218&diff_format=u Index: pear/DB/package.xml diff -u pear/DB/package.xml:1.217 pear/DB/package.xml:1.218 --- pear/DB/package.xml:1.217 Fri Jan 12 02:41:07 2007 +++ pear/DB/package.xml Fri Jan 12 02:46:59 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <package version="1.0"> - <!-- $Id: package.xml,v 1.217 2007/01/12 02:41:07 aharvey Exp $ --> + <!-- $Id: package.xml,v 1.218 2007/01/12 02:46:59 aharvey Exp $ --> <name>DB</name> <summary>Database Abstraction Layer</summary> <description> @@ -89,6 +89,10 @@ ibase: * Handled cases where ibase_prepare returns false. Bug 8217. +ifx: +* Altered simpleQuery() to treat EXECUTE queries as being data-returning. + Bug 5204. + mysqli: * Added the mysterious 246 data type to the type map. Bug 6477. * Allowed the ssl option to be an integer. Bug 5657. http://cvs.php.net/viewvc.cgi/pear/DB/DB/ifx.php?r1=1.72&r2=1.73&diff_format=u Index: pear/DB/DB/ifx.php diff -u pear/DB/DB/ifx.php:1.72 pear/DB/DB/ifx.php:1.73 --- pear/DB/DB/ifx.php:1.72 Fri Jan 12 02:41:07 2007 +++ pear/DB/DB/ifx.php Fri Jan 12 02:47:00 2007 @@ -20,7 +20,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: ifx.php,v 1.72 2007/01/12 02:41:07 aharvey Exp $ + * @version CVS: $Id: ifx.php,v 1.73 2007/01/12 02:47:00 aharvey Exp $ * @link http://pear.php.net/package/DB */ @@ -248,7 +248,7 @@ $ismanip = $this->_checkManip($query); $this->last_query = $query; $this->affected = null; - if (preg_match('/(SELECT)/i', $query)) { //TESTME: Use !DB::isManip()? + if (preg_match('/(SELECT|EXECUTE)/i', $query)) { //TESTME: Use !DB::isManip()? // the scroll is needed for fetching absolute row numbers // in a select query result $result = @ifx_query($query, $this->connection, IFX_SCROLL); @@ -270,7 +270,7 @@ $this->affected = @ifx_affected_rows($result); // Determine which queries should return data, and which // should return an error code only. - if (preg_match('/(SELECT)/i', $query)) { + if (preg_match('/(SELECT|EXECUTE)/i', $query)) { return $result; } // XXX Testme: free results inside a transaction

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