From 87eb3b2a773c74b0c798ee6c3ecebeb972e88c71 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 07:46:44 +0000 Subject: backport r2937 to branch/3.1 --- framework/Util/TLogRouter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Util/TLogRouter.php') diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php index 3c022690..1d6e80b7 100644 --- a/framework/Util/TLogRouter.php +++ b/framework/Util/TLogRouter.php @@ -830,7 +830,7 @@ class TDbLogRoute extends TLogRoute $db=$this->getDbConnection(); $db->setActive(true); - $sql='SELECT * FROM '.$this->_logTable.' WHERE 0'; + $sql='SELECT * FROM '.$this->_logTable.' WHERE 0=1'; try { $db->createCommand($sql)->query()->close(); -- cgit v1.2.3