diff options
author | ctrlaltca@gmail.com <> | 2011-06-01 07:46:44 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-01 07:46:44 +0000 |
commit | 87eb3b2a773c74b0c798ee6c3ecebeb972e88c71 (patch) | |
tree | 574468c37176af5b39c3573ec2355b17471aa10c /framework/Caching | |
parent | ef1c3727e909fcc26b2ee6f7517d458f41ca8ef4 (diff) |
backport r2937 to branch/3.1
Diffstat (limited to 'framework/Caching')
-rw-r--r-- | framework/Caching/TDbCache.php | 2 |
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;
|