Bug due to PSQL 9.0 data must be casted
This commit is contained in:
parent
52751ea69c
commit
a487131fe7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue