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:
parent
331ddfb6fe
commit
e3a871a61a
|
@ -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() )
|
||||||
|
|
Loading…
Reference in New Issue