Re-order tables in FROM to get it working on PostgreSQL.
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 8 Sep 2004 23:24:17 +0000 (23:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 8 Sep 2004 23:24:17 +0000 (23:24 +0000)
Fix for bug 393: Special:Log fails on PostgreSQL
http://bugzilla.wikipedia.org/show_bug.cgi?id=393

includes/SpecialLog.php

index 2e3e2d0..59547d4 100644 (file)
@@ -146,7 +146,7 @@ class LogReader {
                $sql = "SELECT log_type, log_action, log_timestamp,
                        log_user, user_name,
                        log_namespace, log_title, cur_id,
-                       log_comment FROM $logging, $user ";
+                       log_comment FROM $user, $logging ";
                if( !empty( $this->joinClauses ) ) {
                        $sql .= implode( ',', $this->joinClauses );
                }