Fixed extra cast.

This commit is contained in:
Rudi Grinberg 2012-09-10 11:25:21 -04:00
parent 8c3be7393a
commit de86b904a5
1 changed files with 1 additions and 1 deletions

View File

@ -1643,7 +1643,7 @@ SQL;
$start_string = $start_timestamp->format("Y-m-d H:i:s");
$end_string = $end_timestamp->format("Y-m-d H:i:s");
if ($onlyRecord) {
$sql .= " AND (si1.starts >= :start::TIMESTAMP AND si1.starts < timestamp :end::TIMESTAMP)";
$sql .= " AND (si1.starts >= :start::TIMESTAMP AND si1.starts < :end::TIMESTAMP)";
$sql .= " AND (si1.record = 1)";
return Application_Common_Database::prepareAndExecute( $sql,