From cace50cf3b23135be13863aa8e4876f325e203d4 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 10 Jul 2013 11:01:14 -0400 Subject: [PATCH] use raw SQL for profiling. --- framework/yii/db/Command.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/db/Command.php b/framework/yii/db/Command.php index 9ac8459..a754e34 100644 --- a/framework/yii/db/Command.php +++ b/framework/yii/db/Command.php @@ -281,7 +281,7 @@ class Command extends \yii\base\Component return 0; } - $token = $sql; + $token = $rawSql; try { Yii::beginProfile($token, __METHOD__); @@ -403,7 +403,7 @@ class Command extends \yii\base\Component } } - $token = $sql; + $token = $rawSql; try { Yii::beginProfile($token, __METHOD__);