From d877676a3b2432fccfc5ce97e42008f9ce20c94d Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 25 Nov 2006 02:27:26 +0000 Subject: Further bug fixes. --- framework/Data/TDbCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Data') diff --git a/framework/Data/TDbCommand.php b/framework/Data/TDbCommand.php index df34207c..7ae32d17 100644 --- a/framework/Data/TDbCommand.php +++ b/framework/Data/TDbCommand.php @@ -222,7 +222,7 @@ class TDbCommand extends TComponent if($this->_statement instanceof PDOStatement) $this->_statement->execute(); else - $this->_statement=$this->getConnection()->getPdoInstance()->query($sql); + $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText()); $result=$this->_statement->fetch($fetchAssociative ? PDO::FETCH_ASSOC : PDO::FETCH_NUM); $this->_statement->closeCursor(); return $result; @@ -247,7 +247,7 @@ class TDbCommand extends TComponent if($this->_statement instanceof PDOStatement) $this->_statement->execute(); else - $this->_statement=$this->getConnection()->getPdoInstance()->query($sql); + $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText()); $result=$this->_statement->fetchColumn(); $this->_statement->closeCursor(); if($result!==false) -- cgit v1.2.3