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

Revision: 97837
Author:   reedy
Date:     2011-09-22 19:02:39 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
Fix 

from within function "CodeRevision::getComments". Database returned error 
"1064: You have an error in your SQL syntax; check the manual that corresponds 
to your MySQL server version for the right syntax to use near '! IS NULL ORDER 
BY cc_sortkey' at line 1 (localhost)".

Modified Paths:
--------------
    trunk/extensions/CodeReview/backend/CodeRevision.php

Modified: trunk/extensions/CodeReview/backend/CodeRevision.php
===================================================================
--- trunk/extensions/CodeReview/backend/CodeRevision.php        2011-09-22 
18:57:41 UTC (rev 97836)
+++ trunk/extensions/CodeReview/backend/CodeRevision.php        2011-09-22 
19:02:39 UTC (rev 97837)
@@ -781,9 +781,9 @@
                        'cc_rev_id' => $this->id );
 
                if( $attached ) {
-                       $conditions['cc_patch_line!'] = null;
+                       $conditions['cc_patch_line'] = '!= null';
                } else {
-                       $conditions['cc_patch_line']  = null;
+                       $conditions['cc_patch_line'] = null;
                }
 
                $dbr = wfGetDB( DB_SLAVE );


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

Reply via email to