summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorxue <>2006-11-25 02:27:26 +0000
committerxue <>2006-11-25 02:27:26 +0000
commitd877676a3b2432fccfc5ce97e42008f9ce20c94d (patch)
tree1f477fe9393bde0da8ded400b7c6513d1b2c3102 /framework/Data
parent7280a2301a3d3dd251d8302c3f7999fa09780d42 (diff)
Further bug fixes.
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/TDbCommand.php4
1 files changed, 2 insertions, 2 deletions
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)