Fix for cast from Anthony Messina

This commit is contained in:
Nathan Gray
2010-03-07 22:09:48 +00:00
parent 83b60b81fc
commit 3a09d2072f

View File

@ -423,7 +423,7 @@ class calendar_so
// For deleted history // For deleted history
$history_id = $this->cal_table.'.cal_id'; $history_id = $this->cal_table.'.cal_id';
// Postgres needs a cast // Postgres needs a cast
if($this->db->Type == 'postgres') { if($this->db->Type == 'pgsql') {
$history_id = "CAST($history_id AS VARCHAR)"; $history_id = "CAST($history_id AS VARCHAR)";
} }