Porting tocToggle to ResourceLoader
[lhc/web/wiklou.git] / maintenance / runBatchedQuery.php
index 555b7b9..970b392 100644 (file)
@@ -35,7 +35,7 @@ class BatchedQueryRunner extends Maintenance {
        public function execute() {
                if ( !$this->hasArg() )
                        $this->error( "No query specified. Specify the query as a command line parameter.", true );
-               
+
                $query = $this->getArg();
                $wait = $this->getOption( 'wait', 5 );
                $n = 1;
@@ -43,7 +43,7 @@ class BatchedQueryRunner extends Maintenance {
                do {
                        $this->output( "Batch $n: " );
                        $n++;
-                       $dbw->query( $query );
+                       $dbw->query( $query, __METHOD__ );
                        $affected = $dbw->affectedRows();
                        $this->output( "$affected rows\n" );
                        wfWaitForSlaves( $wait );