cvs: pear /MDB2 package_mysql.php package_mysqli.php /MDB2/MDB2/Driver mysql.php mysqli.php

From: Date: Mon, 26 Feb 2007 21:47:06 +0000
Subject: cvs: pear /MDB2 package_mysql.php package_mysqli.php /MDB2/MDB2/Driver mysql.php mysqli.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44891@lists.php.net to get a copy of this message
quipo Mon Feb 26 21:47:06 2007 UTC Modified files: /pear/MDB2/MDB2/Driver mysql.php mysqli.php /pear/MDB2 package_mysql.php package_mysqli.php Log: fixed bug #10181: propagate error when an invalid type is passed to prepare() http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysql.php?r1=1.174&r2=1.175&diff_format=u Index: pear/MDB2/MDB2/Driver/mysql.php diff -u pear/MDB2/MDB2/Driver/mysql.php:1.174 pear/MDB2/MDB2/Driver/mysql.php:1.175 --- pear/MDB2/MDB2/Driver/mysql.php:1.174 Thu Feb 8 09:36:44 2007 +++ pear/MDB2/MDB2/Driver/mysql.php Mon Feb 26 21:47:06 2007 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.174 2007/02/08 09:36:44 quipo Exp $ +// $Id: mysql.php,v 1.175 2007/02/26 21:47:06 quipo Exp $ // /** @@ -1363,7 +1363,11 @@ $value = $data; } } - $param_query = 'SET @'.$parameter.' = '.$this->db->quote($value, $type); + $quoted = $this->db->quote($value, $type); + if (PEAR::isError($quoted)) { + return $quoted; + } + $param_query = 'SET @'.$parameter.' = '.$quoted; $result = $this->db->_doQuery($param_query, true, $connection); if (PEAR::isError($result)) { return $result; http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.153&r2=1.154&diff_format=u Index: pear/MDB2/MDB2/Driver/mysqli.php diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.153 pear/MDB2/MDB2/Driver/mysqli.php:1.154 --- pear/MDB2/MDB2/Driver/mysqli.php:1.153 Thu Feb 8 09:36:44 2007 +++ pear/MDB2/MDB2/Driver/mysqli.php Mon Feb 26 21:47:06 2007 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.153 2007/02/08 09:36:44 quipo Exp $ +// $Id: mysqli.php,v 1.154 2007/02/26 21:47:06 quipo Exp $ // /** @@ -1443,7 +1443,11 @@ $value = $data; } } - $param_query = 'SET @'.$parameter.' = '.$this->db->quote($value, $type); + $quoted = $this->db->quote($value, $type); + if (PEAR::isError($quoted)) { + return $quoted; + } + $param_query = 'SET @'.$parameter.' = '.$quoted; $result = $this->db->_doQuery($param_query, true, $connection); if (PEAR::isError($result)) { return $result; http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysql.php?r1=1.98&r2=1.99&diff_format=u Index: pear/MDB2/package_mysql.php diff -u pear/MDB2/package_mysql.php:1.98 pear/MDB2/package_mysql.php:1.99 --- pear/MDB2/package_mysql.php:1.98 Sun Feb 25 11:15:03 2007 +++ pear/MDB2/package_mysql.php Mon Feb 26 21:47:06 2007 @@ -21,6 +21,7 @@ getTableConstraintDefinition() in the Reverse module to ignore the 'idxname_format' option and use the index name as provided in case of failure before returning an error +- fixed bug #10181: propagate error when an invalid type is passed to prepare() - phpdoc fixes note: http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mysqli.php?r1=1.101&r2=1.102&diff_format=u Index: pear/MDB2/package_mysqli.php diff -u pear/MDB2/package_mysqli.php:1.101 pear/MDB2/package_mysqli.php:1.102 --- pear/MDB2/package_mysqli.php:1.101 Sun Feb 25 11:15:03 2007 +++ pear/MDB2/package_mysqli.php Mon Feb 26 21:47:06 2007 @@ -21,6 +21,7 @@ getTableConstraintDefinition() in the Reverse module to ignore the 'idxname_format' option and use the index name as provided in case of failure before returning an error +- fixed bug #10181: propagate error when an invalid type is passed to prepare() - phpdoc fixes open todo items:

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