Fixed extra cast.
This commit is contained in:
parent
8c3be7393a
commit
de86b904a5
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue