getCode." msg ".$e->getMessage); rollback($p_cn); return ERROR; } Commit($p_cn); EndSql($p_cn); return NOERROR; } /*! ************************************************** * \brief test if e jrn_jr.id is centralize or not * \param $p_cn database connx * \param $p_jrn_id jrn.jr_id * \return: 0 if not centralized otherwise > 0 */ function isCentralize($p_cn,$p_jrn_id) { $Res=ExecSql($p_cn,"select c_id from centralized where c_j_id=$p_jrn_id"); return pg_NumRows($Res); } ?>