Toolserver:Query service/40

From mediawiki.org

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

Image hash collisions (no.wiki)[edit]

Description List of images with same SHA1 hashes between two wikis.
Assignee MZMcBride
JIRA bug DBQ-40
Source Query service/40#Query
Results Query service/40#Results
Approximate run time Less than 30 seconds.
Interval
Category:Query service

Query[edit]

SELECT
 
CONCAT(
  '* [[:commons:Image:'
, db1.img_name
, ']] = [[:no:Image:'
, db2.img_name
, ']] (hash: '
, db1.img_sha1
, ')'
) AS collision
 
FROM commonswiki_p.image db1
 
JOIN nowiki_p.image db2
  ON db1.img_sha1 = db2.img_sha1
 
WHERE db1.img_sha1 <> '';

Change commonswiki_p and nowiki_p to run against different wikis.

Results[edit]

Last run: 21:23, 18 September 2008 (UTC)