http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89594

Revision: 89594
Author:   reedy
Date:     2011-06-06 19:24:14 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
Followup r89588, adding the DISTINCT keyword is somewhat helpful

Modified Paths:
--------------
    trunk/extensions/CodeReview/api/ApiQueryCodePaths.php

Modified: trunk/extensions/CodeReview/api/ApiQueryCodePaths.php
===================================================================
--- trunk/extensions/CodeReview/api/ApiQueryCodePaths.php       2011-06-06 
19:23:36 UTC (rev 89593)
+++ trunk/extensions/CodeReview/api/ApiQueryCodePaths.php       2011-06-06 
19:24:14 UTC (rev 89594)
@@ -38,7 +38,7 @@
                }
 
                $this->addTables( 'code_paths' );
-               $this->addFields( 'cp_path' );
+               $this->addFields( 'DISTINCT cp_path' );
                $this->addWhere( array( 'cp_repo_id' => $repo->getId() ) );
                $db = $this->getDB();
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to