Fixed recently broken sql assignment.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1163 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-12-28 15:43:40 +00:00
parent 331ddfb6fe
commit e3a871a61a
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ do
} }
} }
my sql8 = "select distinct EventId from Stats left join Events on Stats.EventId = Events.Id where isnull(Events.Id) group by EventId"; my $sql8 = "select distinct EventId from Stats left join Events on Stats.EventId = Events.Id where isnull(Events.Id) group by EventId";
my $sth8 = $dbh->prepare_cached( $sql8 ) or die( "Can't prepare '$sql8': ".$dbh->errstr() ); my $sth8 = $dbh->prepare_cached( $sql8 ) or die( "Can't prepare '$sql8': ".$dbh->errstr() );
$res = $sth8->execute() or die( "Can't execute: ".$sth8->errstr() ); $res = $sth8->execute() or die( "Can't execute: ".$sth8->errstr() );
while( my $stat = $sth8->fetchrow_hashref() ) while( my $stat = $sth8->fetchrow_hashref() )