src/snac/server/database/SQL.php
/**
     * Update MaybeSame Links
     *
     * Updates the maybe same table to point any maybesame references from icid to currentICID.
     * After doing an update, it will remove any self-referencing maybesames.
     *
     * @param int $icid The icid to re-map in the maybe same table
     * @param int $currentICID The updated ICID to use instead of $icid
     */
Update MaybeSame Links
Updates the maybe same table to point any maybesame references from icid to currentICID.
After doing an update, it will remove any self-referencing maybesames.

@param int $icid The icid to re-map in the maybe same table
@param int $currentICID The updated ICID to use instead of $icid
Update MaybeSame Links Updates the maybe same table to point any maybesame references from icid to currentICID . After doing an update it will remove any self - referencing maybesames . @param int $icid The icid to re - map in the maybe same table @param int $currentICID The updated ICID to use instead of $icid
public function updateMaybeSameLinks($icid, $currentICID) {
        $result = $this->sdb->query('update maybe_same
            set ic_id1 = $2 where ic_id1 = $1;',
            array($icid, $currentICID));
        $result = $this->sdb->query('update maybe_same
            set ic_id2 = $2 where ic_id2 = $1;',
            array($icid, $currentICID));
        $result = $this->sdb->query('delete from maybe_same where ic_id1 = ic_id2;', array());
    }
public function updateMaybeSameLinks ( $ icid , $ currentICID ) { $ result = $ this -> sdb -> query ( 'update maybe_same
            set ic_id1 = $2 where ic_id1 = $1;' , array ( $ icid , $ currentICID ) ) ; $ result = $ this -> sdb -> query ( 'update maybe_same
            set ic_id2 = $2 where ic_id2 = $1;' , array ( $ icid , $ currentICID ) ) ; $ result = $ this -> sdb -> query ( 'delete from maybe_same where ic_id1 = ic_id2;' , array ( ) ) ; }
Update MaybeSame Links
 Updates the maybe same table to point any maybesame references from icid to currentICID.
Update MaybeSame Links Updates the maybe same table to point any maybesame references from icid to currentICID .
// Remove any self-referencing links