summaryrefslogtreecommitdiff
path: root/framework/Caching/TDbCache.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-01 07:46:00 +0000
committerctrlaltca@gmail.com <>2011-06-01 07:46:00 +0000
commite38ecc97ba8c29bf7859021616feee2f4962f404 (patch)
treea38d2f8aead434fdb5b03b00d2c34b0e7f4f934b /framework/Caching/TDbCache.php
parent6e5fac00670d3d61fa4cd797b23d431ee2981d38 (diff)
fix for #327
Diffstat (limited to 'framework/Caching/TDbCache.php')
-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;