Bug due to PSQL 9.0 data must be casted

This commit is contained in:
Dany De Bontridder 2012-06-27 11:04:30 +00:00
parent 52751ea69c
commit a487131fe7

View file

@ -574,7 +574,7 @@ class Acc_Account_Ledger
$SqlFilter=$SqlFilter.$SqlItem;
}
}//foreach
$sql.=$SqlFilter.' and pcm_val='.$this->id;
$sql.=$SqlFilter.' and pcm_val::text='.$this->id;
$max=$this->db->get_value($sql);
if ($max > 0 )
return 0;