Changeset 382

Show
Ignore:
Timestamp:
07/29/08 17:47:33 (5 months ago)
Author:
mrook
Message:

#260 - Only call processResults() when there are actual results to process

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/classes/phing/tasks/ext/pdo/PDOSQLExecTask.php

    r345 r382  
    481481                $this->log($this->statement->rowCount() . " rows affected", Project::MSG_VERBOSE); 
    482482 
    483                 $this->processResults(); 
     483                // only call processResults() for statements that return actual data (such as 'select') 
     484                if ($this->statement->columnCount() > 0) 
     485                { 
     486                        $this->processResults(); 
     487                } 
    484488 
    485489                $this->statement->closeCursor();