cvs: pear /MDB2/MDB2/Driver pgsql.php

From: Date: Mon, 20 Mar 2006 17:04:06 +0000
Subject: cvs: pear /MDB2/MDB2/Driver pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39209@lists.php.net to get a copy of this message
lsmith Mon Mar 20 17:04:06 2006 UTC Modified files: /pear/MDB2/MDB2/Driver pgsql.php Log: - make sure that statement names are truely unique unfortunately there is no way to check what statements are prepared for this connection, so we cant just md5($query) and reuse existing prepared statements http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/pgsql.php?r1=1.104&r2=1.105&diff_format=u Index: pear/MDB2/MDB2/Driver/pgsql.php diff -u pear/MDB2/MDB2/Driver/pgsql.php:1.104 pear/MDB2/MDB2/Driver/pgsql.php:1.105 --- pear/MDB2/MDB2/Driver/pgsql.php:1.104 Fri Mar 17 08:47:21 2006 +++ pear/MDB2/MDB2/Driver/pgsql.php Mon Mar 20 17:04:06 2006 @@ -43,7 +43,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.104 2006/03/17 08:47:21 lsmith Exp $ +// $Id: pgsql.php,v 1.105 2006/03/20 17:04:06 lsmith Exp $ /** * MDB2 PostGreSQL driver @@ -709,7 +709,7 @@ if ($pgtypes) { $types_string = ' ('.implode(', ', $pgtypes).') '; } - $statement_name = 'MDB2_Statement_'.$this->phptype.md5(time()); + $statement_name = 'MDB2_Statement_'.$this->phptype.md5(time() + rand()); $query = 'PREPARE '.$statement_name.$types_string.' AS '.$query; $statement = $this->_doQuery($query, $is_manip, $connection); if (PEAR::isError($statement)) {

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