cvs: pearweb /include pear-database.php

From: Date: Sat, 21 Oct 2006 00:02:29 +0000
Subject: cvs: pearweb /include pear-database.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5123@lists.php.net to get a copy of this message
cellog Sat Oct 21 00:02:29 2006 UTC Modified files: /pearweb/include pear-database.php Log: fix Bug #9113 Package stats problems (try again) http://cvs.php.net/viewvc.cgi/pearweb/include/pear-database.php?r1=1.322&r2=1.323&diff_format=u Index: pearweb/include/pear-database.php diff -u pearweb/include/pear-database.php:1.322 pearweb/include/pear-database.php:1.323 --- pearweb/include/pear-database.php:1.322 Fri Oct 20 03:34:01 2006 +++ pearweb/include/pear-database.php Sat Oct 21 00:02:28 2006 @@ -18,7 +18,7 @@ | Martin Jansen <mj@php.net> | | Gregory Beaver <cellog@php.net> | +----------------------------------------------------------------------+ - $Id: pear-database.php,v 1.322 2006/10/20 03:34:01 cellog Exp $ + $Id: pear-database.php,v 1.323 2006/10/21 00:02:28 cellog Exp $ */ require_once 'DB/storage.php'; @@ -2387,6 +2387,9 @@ $release ); $sth = $dbh->query($query); + // remove statistics on this release + $dbh->query('DELETE FROM package_stats WHERE pid = ? AND rid = ?', array($package, $release)); + $dbh->query('DELETE FROM aggregated_package_stats WHERE package_id = ? AND release_id = ?', array($package, $release)); $GLOBALS['pear_rest']->saveAllReleasesREST($pname); $GLOBALS['pear_rest']->deleteReleaseREST($pname, $version); $GLOBALS['pear_rest']->savePackagesCategoryREST(package::info($pname, 'category'));

« previous php.pear.core (#5123) next »