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

From: Date: Sun, 20 Aug 2006 19:38:26 +0000
Subject: cvs: pear /MDB2/MDB2/Driver mysql.php mysqli.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41766@lists.php.net to get a copy of this message
lsmith Sun Aug 20 19:38:26 2006 UTC Modified files: /pear/MDB2/MDB2/Driver mysql.php mysqli.php Log: - RELEASE SAVEPOINT was appearently added 5.0.3 http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysql.php?r1=1.156&r2=1.157&diff_format=u Index: pear/MDB2/MDB2/Driver/mysql.php diff -u pear/MDB2/MDB2/Driver/mysql.php:1.156 pear/MDB2/MDB2/Driver/mysql.php:1.157 --- pear/MDB2/MDB2/Driver/mysql.php:1.156 Sun Aug 20 09:48:43 2006 +++ pear/MDB2/MDB2/Driver/mysql.php Sun Aug 20 19:38:26 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.156 2006/08/20 09:48:43 lsmith Exp $ +// $Id: mysql.php,v 1.157 2006/08/20 19:38:26 lsmith Exp $ // /** @@ -260,6 +260,10 @@ return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 'savepoints are not supported', __FUNCTION__); } + $server_info = $this->getServerVersion(); + if (version_compare($server_info['major'].'.'.$server_info['minor'].'.'.$server_info['patch'], '5.0.3', '<')) { + return MDB2_OK; + } $query = 'RELEASE SAVEPOINT '.$savepoint; return $this->_doQuery($query, true); } http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.132&r2=1.133&diff_format=u Index: pear/MDB2/MDB2/Driver/mysqli.php diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.132 pear/MDB2/MDB2/Driver/mysqli.php:1.133 --- pear/MDB2/MDB2/Driver/mysqli.php:1.132 Sun Aug 20 09:48:43 2006 +++ pear/MDB2/MDB2/Driver/mysqli.php Sun Aug 20 19:38:26 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.132 2006/08/20 09:48:43 lsmith Exp $ +// $Id: mysqli.php,v 1.133 2006/08/20 19:38:26 lsmith Exp $ // /** @@ -257,6 +257,10 @@ return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 'savepoints are not supported', __FUNCTION__); } + $server_info = $this->getServerVersion(); + if (version_compare($server_info['major'].'.'.$server_info['minor'].'.'.$server_info['patch'], '5.0.3', '<')) { + return MDB2_OK; + } $query = 'RELEASE SAVEPOINT '.$savepoint; return $this->_doQuery($query, true); }

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