This would actually do a SQL query of literally 'TRUNCATE $tableName;' - switching...
authorNick Jenkins <nickj@users.mediawiki.org>
Fri, 12 Jan 2007 06:35:10 +0000 (06:35 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Fri, 12 Jan 2007 06:35:10 +0000 (06:35 +0000)
maintenance/FiveUpgrade.inc

index 8b7e613..4e69603 100644 (file)
@@ -738,7 +738,7 @@ END;
        function clearTable( $table ) {
                print "Clearing $table...\n";
                $tableName = $this->db->tableName( $table );
-               $this->db->query( 'TRUNCATE $tableName' );
+               $this->db->query( "TRUNCATE $tableName" );
        }
 
        /**