}
$this->trxProfiler->recordQueryCompletion(
- $queryProf, $startTime, $isWrite, $this->affectedRows()
+ $queryProf,
+ $startTime,
+ $isWrite,
+ $isWrite ? $this->affectedRows() : $this->numRows( $ret )
);
$this->queryLogger->debug( $sql, [
'method' => $fname,
*/
public function __clone() {
$this->connLogger->warning(
- "Cloning " . static::class . " is not recomended; forking connection:\n" .
+ "Cloning " . static::class . " is not recommended; forking connection:\n" .
( new RuntimeException() )->getTraceAsString()
);