From bc3798e47a2716694dcb6e6ec1def38a5c06dca6 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 23 Dec 2002 02:01:21 +0000 Subject: [PATCH] *** empty log message *** --- scripts/count-dons.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/count-dons.pl b/scripts/count-dons.pl index cb7391f1e0f..744eaa016fd 100755 --- a/scripts/count-dons.pl +++ b/scripts/count-dons.pl @@ -24,7 +24,7 @@ use DBI; my $dbh = DBI->connect($ARGV[2]) || die $DBI::errstr ; my $sql = 'SELECT sum(amount) FROM llx_don'; -$sql .= ' WHERE fk_statut = ' .$ARGV[1].' AND fk_don_projet = '.$ARGV[0]; +$sql .= ' WHERE fk_statut in (' .$ARGV[1].') AND fk_don_projet = '.$ARGV[0]; my $sth = $dbh->prepare("$sql") || die $dbh->errstr ; $sth->execute;