summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Caching/TDbCache.php2
-rw-r--r--framework/Util/TLogRouter.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/Caching/TDbCache.php b/framework/Caching/TDbCache.php
index 0e013c79..6dfd2897 100644
--- a/framework/Caching/TDbCache.php
+++ b/framework/Caching/TDbCache.php
@@ -195,7 +195,7 @@ class TDbCache extends TCache
Prado::trace(($force ? 'Force initializing: ' : 'Initializing: ') . $this -> id . ', ' . $this->_cacheTable, 'System.Caching.TDbCache');
- $sql='SELECT 1 FROM '.$this->_cacheTable.' WHERE 0';
+ $sql='SELECT 1 FROM '.$this->_cacheTable.' WHERE 0=1';
$db->createCommand($sql)->queryScalar();
$this -> _createCheck = true;
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();