Toolserver:Query service/5

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[edit]

Description List of images with same SHA1 hashes between two wikis.
Assignee Siebrand
JIRA bug DBQ-5
Source Query service/image hash collisions#Query
Results Query service/image hash collisions#Results
Approximate run time below one minute on commons vs. nlwiki
Interval
Category:Query service


Query[edit]

select

concat(
  '* [[:commons:Image:'
, db1.img_name
, ']] = [[:nl:Image:'
, db2.img_name
, ']] (hash: '
, db1.img_sha1
, ')'
) as collision

from commonswiki_p.image db1

join nlwiki_p.image db2
  on db1.img_sha1 = db2.img_sha1

where db1.img_sha1 <> '';

Change commonswiki_p and nlwiki_p to run against different wikis.

Results[edit]

Last run: 21:09, 15 December 2007 (UTC)