Rev 1130 | Rev 1169 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1130 | Rev 1162 | ||
---|---|---|---|
Line 560... | Line 560... | ||
560 | } |
560 | } |
561 | 561 | ||
562 | // Now do the real replacement |
562 | // Now do the real replacement |
563 | if (!$simulate) { |
563 | if (!$simulate) { |
564 | OIDplus::db()->query("delete from ###asn1id where oid = ?", array("oid:".$this->oid)); |
564 | OIDplus::db()->query("delete from ###asn1id where oid = ?", array("oid:".$this->oid)); |
565 | foreach ($demandedASN1s as &$asn1) { |
565 | foreach ($demandedASN1s as $asn1) { |
566 | OIDplus::db()->query("insert into ###asn1id (oid, name) values (?, ?)", array("oid:".$this->oid, $asn1)); |
566 | OIDplus::db()->query("insert into ###asn1id (oid, name) values (?, ?)", array("oid:".$this->oid, $asn1)); |
567 | } |
567 | } |
568 | } |
568 | } |
569 | } |
569 | } |
570 | 570 | ||
Line 604... | Line 604... | ||
604 | } |
604 | } |
605 | 605 | ||
606 | // Now do the real replacement |
606 | // Now do the real replacement |
607 | if (!$simulate) { |
607 | if (!$simulate) { |
608 | OIDplus::db()->query("delete from ###iri where oid = ?", array("oid:".$this->oid)); |
608 | OIDplus::db()->query("delete from ###iri where oid = ?", array("oid:".$this->oid)); |
609 | foreach ($demandedIris as &$iri) { |
609 | foreach ($demandedIris as $iri) { |
610 | OIDplus::db()->query("insert into ###iri (oid, name) values (?, ?)", array("oid:".$this->oid, $iri)); |
610 | OIDplus::db()->query("insert into ###iri (oid, name) values (?, ?)", array("oid:".$this->oid, $iri)); |
611 | } |
611 | } |
612 | } |
612 | } |
613 | } |
613 | } |
614 | 614 |