summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/Statements/TCachingStatement.php
diff options
context:
space:
mode:
authorwei <>2007-04-03 01:38:15 +0000
committerwei <>2007-04-03 01:38:15 +0000
commit03dbe16b7762cc1a9e57df4e9e34bc04f46bb57f (patch)
tree4510a10b0a9fdcf6e6612d773f2bad55b8eb0534 /framework/Data/SqlMap/Statements/TCachingStatement.php
parent571b069953f559edd02f89476ebe628efa63d613 (diff)
update js onclick handler context for controls with js counterpart.
Diffstat (limited to 'framework/Data/SqlMap/Statements/TCachingStatement.php')
-rw-r--r--framework/Data/SqlMap/Statements/TCachingStatement.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Data/SqlMap/Statements/TCachingStatement.php b/framework/Data/SqlMap/Statements/TCachingStatement.php
index 7d0c0824..051a8ec3 100644
--- a/framework/Data/SqlMap/Statements/TCachingStatement.php
+++ b/framework/Data/SqlMap/Statements/TCachingStatement.php
@@ -45,7 +45,7 @@ class TCachingStatement implements IMappedStatement
public function executeQueryForMap($connection, $parameter,$keyProperty, $valueProperty=null, $delegate=null)
{
$sql = $this->createCommand($connection, $parameter);
- $key = $this->getCacheKey(array($sql, $keyProperty, $valueProperty));
+ $key = $this->getCacheKey(array(clone($sql), $keyProperty, $valueProperty));
$map = $this->getStatement()->getCache()->get($key);
if(is_null($map))
{
@@ -69,7 +69,7 @@ class TCachingStatement implements IMappedStatement
public function executeQueryForList($connection, $parameter, $result=null, $skip=-1, $max=-1, $delegate=null)
{
$sql = $this->createCommand($connection, $parameter);
- $key = $this->getCacheKey(array($sql, $skip, $max));
+ $key = $this->getCacheKey(array(clone($sql), $parameter, $skip, $max));
$list = $this->getStatement()->getCache()->get($key);
if(is_null($list))
{
@@ -83,7 +83,7 @@ class TCachingStatement implements IMappedStatement
public function executeQueryForObject($connection, $parameter, $result=null)
{
$sql = $this->createCommand($connection, $parameter);
- $key = $this->getCacheKey($sql);
+ $key = $this->getCacheKey(array(clone($sql), $parameter));
$object = $this->getStatement()->getCache()->get($key);
if(is_null($object))
{