Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 2aec58e

Browse files
committed
BUG: refs #0355. Explicitly cast feed revision id as a string for pgsql
1 parent f774055 commit 2aec58e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/models/pdo/ItemRevisionModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ function delete($revisiondao)
8989
$bitstream_model->delete($bitstream);
9090
}
9191

92-
92+
// explicitly typecast the id to a string, for postgres
9393
$deleteType = array(MIDAS_FEED_CREATE_REVISION);
9494
$sql = $this->database->select()
9595
->setIntegrityCheck(false)
9696
->from(array('p' => 'feed'))
97-
->where('ressource = ?', $revisiondao->getKey());
97+
->where('ressource = ?', (string)$revisiondao->getKey());
9898

9999
$rowset = $this->database->fetchAll($sql);
100100
$this->ModelLoader = new MIDAS_ModelLoader();

0 commit comments

Comments
 (0)