summaryrefslogtreecommitdiff
path: root/framework/Util
diff options
context:
space:
mode:
authorChristophe.Boulain <>2009-03-16 10:32:09 +0000
committerChristophe.Boulain <>2009-03-16 10:32:09 +0000
commit19652f245a2dde0e8ac7a6be57748384f8edcc51 (patch)
treed0e1be27c7a5e7a631ca1273c8899fb4daf46aed /framework/Util
parentceeea859d99a37b59272652f3a3ebccdb7674806 (diff)
Fixed Issue#129, Issue#130
Diffstat (limited to 'framework/Util')
-rw-r--r--framework/Util/TLogRouter.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index aa772194..70c701ee 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -764,7 +764,7 @@ class TDbLogRoute extends TLogRoute
$sql='SELECT * FROM '.$this->_logTable.' WHERE 0';
try
{
- $db->createCommand($sql)->execute();
+ $db->createCommand($sql)->query()->close();
}
catch(Exception $e)
{
@@ -788,10 +788,10 @@ class TDbLogRoute extends TLogRoute
$command=$this->getDbConnection()->createCommand($sql);
foreach($logs as $log)
{
- $command->bindValue(':level',$log[0]);
- $command->bindValue(':category',$log[1]);
- $command->bindValue(':logtime',$log[2]);
- $command->bindValue(':message',$log[3]);
+ $command->bindValue(':message',$log[0]);
+ $command->bindValue(':level',$log[1]);
+ $command->bindValue(':category',$log[2]);
+ $command->bindValue(':logtime',$log[3]);
$command->execute();
}
}