public function update(Vulnerability &$vulnerability) { $this->db->query("update Vulnerability set\n \toperator='" . $this->db->escape($vulnerability->getOperator()) . "',\n \tcveDefId=" . $this->db->escape($vulnerability->getCveDefId()) . ",\n \tosGroupId=" . $this->db->escape($vulnerability->getOsGroupId()) . ",\n \tname='" . $this->db->escape($vulnerability->getName()) . "',\n \tversion='" . $this->db->escape($vulnerability->getVersion()) . "',\n \t`release`='" . $this->db->escape($vulnerability->getRelease()) . "',\n \tarch='" . $this->db->escape($vulnerability->getArch()) . "'\n where id=" . $this->db->escape($vulnerability->getId())); }