Added space to sql squery
This commit is contained in:
parent
d1b4ce3de6
commit
b2737688cc
|
@ -191,7 +191,7 @@ class Application_Model_Block implements Application_Model_LibraryEditable
|
||||||
Logging::info("Getting contents for block {$this->id}");
|
Logging::info("Getting contents for block {$this->id}");
|
||||||
|
|
||||||
$files = array();
|
$files = array();
|
||||||
$sql = <<<"EOT"
|
$sql = <<<SQL
|
||||||
SELECT pc.id AS id,
|
SELECT pc.id AS id,
|
||||||
pc.position,
|
pc.position,
|
||||||
pc.cliplength AS LENGTH,
|
pc.cliplength AS LENGTH,
|
||||||
|
@ -211,8 +211,7 @@ LEFT JOIN cc_files AS f ON pc.file_id=f.id
|
||||||
LEFT JOIN cc_block AS bl ON pc.block_id = bl.id
|
LEFT JOIN cc_block AS bl ON pc.block_id = bl.id
|
||||||
WHERE pc.block_id = :block_id
|
WHERE pc.block_id = :block_id
|
||||||
ORDER BY pc.position;
|
ORDER BY pc.position;
|
||||||
|
SQL;
|
||||||
EOT;
|
|
||||||
|
|
||||||
$rows = Application_Common_Database::prepareAndExecute($sql, array(':block_id'=>$this->id));
|
$rows = Application_Common_Database::prepareAndExecute($sql, array(':block_id'=>$this->id));
|
||||||
|
|
||||||
|
|
|
@ -567,7 +567,7 @@ WHERE st.ends > :startTime1
|
||||||
ORDER BY st.starts LIMIT 3
|
ORDER BY st.starts LIMIT 3
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$sql = $baseQuery.$predicates;
|
$sql = " ".$baseQuery.$predicates;
|
||||||
$rows = Application_Common_Database::prepareAndExecute($sql,
|
$rows = Application_Common_Database::prepareAndExecute($sql,
|
||||||
array(
|
array(
|
||||||
':startTime1' => $p_startTime,
|
':startTime1' => $p_startTime,
|
||||||
|
|
Loading…
Reference in New Issue