summaryrefslogtreecommitdiff
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
parentceeea859d99a37b59272652f3a3ebccdb7674806 (diff)
Fixed Issue#129, Issue#130
-rw-r--r--HISTORY2
-rw-r--r--framework/Util/TLogRouter.php10
2 files changed, 7 insertions, 5 deletions
diff --git a/HISTORY b/HISTORY
index 936bcf0d..63e64c02 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4,6 +4,8 @@ BUG: Issue#87 - TinyMCE : empty string disapears after encoding JS, that's a pro
BUG: Issue#96 - THttpResponse::redirect don't send status code (Christophe)
BUG: Issue#107 - typo in TDbConnection::getCharset() (Christophe)
BUG: Issue#127 - TDataSourceConfig::findConnectionByID try to access private var (Cristophe)
+BUG: Issue#129 - TDbLogRoute::init don't close the sql command (Christophe)
+Bug: Issue#130 - TDbLogRoute::processLogs wrong values binding (Christophe)
CHG: Issue#7 - Clients Scripts are not combined anymore in Debug application mode (Christophe)
ENH: Issue#115 - Registry for Prado generated clientside counterparts of serverside controls (Yves Berkholz)
ENH: Added caching of message files to TException (Michael)
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();
}
}