Browse Source

use raw SQL for profiling.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
cace50cf3b
  1. 4
      framework/yii/db/Command.php

4
framework/yii/db/Command.php

@ -281,7 +281,7 @@ class Command extends \yii\base\Component
return 0; return 0;
} }
$token = $sql; $token = $rawSql;
try { try {
Yii::beginProfile($token, __METHOD__); Yii::beginProfile($token, __METHOD__);
@ -403,7 +403,7 @@ class Command extends \yii\base\Component
} }
} }
$token = $sql; $token = $rawSql;
try { try {
Yii::beginProfile($token, __METHOD__); Yii::beginProfile($token, __METHOD__);

Loading…
Cancel
Save