summaryrefslogtreecommitdiff
path: root/framework/Caching
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Caching')
-rw-r--r--framework/Caching/TDbCache.php2
1 files changed, 1 insertions, 1 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;