I tried to find a simple way to echo the actual SQL query that I'm trying to execute. (for testing/checking purposes)
something like:
User::Model()->getQueryString()
but no luck
thanks,
--iM
Posted 18 June 2009 - 10:03 AM
User::Model()->getQueryString()
Posted 18 June 2009 - 10:14 AM
Posted 18 June 2009 - 11:44 AM
log = /tmp/mysql.log
Posted 18 June 2009 - 12:20 PM
'components'=>array(
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
array(
'class'=>'CWebLogRoute',
'levels' => 'trace',
),
),
),
'db'=>array(
'class'=>'CDbConnection',
.
.
.
'enableProfiling'=>true
),
Posted 18 June 2009 - 01:58 PM
Executing SQL: INSERT INTO `Slug` (`ownerId`, `ownerTable`, `slug`) VALUES
(:yp0, :yp1, :yp2)
Querying SQL: SELECT COUNT(*) FROM `Slug` WHERE LOWER(slug)=?
Posted 18 June 2009 - 02:48 PM