https://bugzilla.wikimedia.org/show_bug.cgi?id=24502

Roan Kattouw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
          Component|API                         |Database
         AssignedTo|[email protected]      |[email protected].
                   |                            |org
            Summary|Multiple interwikis to same |Multiple interwikis to same
                   |Wikipedia not displayed in  |Wikipedia not stored in
                   |API                         |database

--- Comment #1 from Roan Kattouw <[email protected]> 2010-07-23 06:03:02 
UTC ---
The culprit is in the database:

CREATE UNIQUE INDEX /*i*/ll_from ON /*_*/langlinks (ll_from, ll_lang);

This says the combination of (page, language) is unique, but in the case you
demonstrated it isn't. Should be changed to:

CREATE UNIQUE INDEX /*i*/ll_from ON /*_*/langlinks (ll_from, ll_lang,
ll_title);

and the code updated accordingly (both in the API and in the rest of core).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to