Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[ljcom] r11206: LJRU-2725: New comments system

Committer: amyshkin
LJRU-2725: New comments system
U   trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm
===================================================================
--- trunk/cgi-bin/LJ/PartnerSite.pm	2011-11-23 15:42:57 UTC (rev 11205)
+++ trunk/cgi-bin/LJ/PartnerSite.pm	2011-11-24 11:52:55 UTC (rev 11206)
@@ -293,17 +293,17 @@
 
 =item *
 
-$partner->insert_mapping( $entry, $docid ): record that the given
+$partner->replace_mapping( $entry, $docid ): record that the given
 entry corresponds to the given docid.
 
 =cut
 
-sub insert_mapping {
+sub replace_mapping {
     my ( $self, $entry, $docid ) = @_;
 
     my $dbh = LJ::get_db_writer();
     $dbh->do( qq{
-        INSERT IGNORE INTO external_sites_articles_map
+        REPLACE INTO external_sites_articles_map
         SET
             partnerid = ?,
             docid_hash = ?,

Tags: amyshkin, ljcom, pm, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments