summaryrefslogtreecommitdiff
path: root/framework/Data/TDbCommand.php
diff options
context:
space:
mode:
authorwei <>2007-01-17 08:01:40 +0000
committerwei <>2007-01-17 08:01:40 +0000
commit3dc598bc7c2604e24b9e0be1189d9d78b43737ea (patch)
treefa3bc532607b6c70af3737fec80ebfed62debc5a /framework/Data/TDbCommand.php
parentd919dfa1674ddd5226834b81728e1772917d6240 (diff)
Add active record generator.
Diffstat (limited to 'framework/Data/TDbCommand.php')
-rw-r--r--framework/Data/TDbCommand.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Data/TDbCommand.php b/framework/Data/TDbCommand.php
index 054aa653..5c824b8f 100644
--- a/framework/Data/TDbCommand.php
+++ b/framework/Data/TDbCommand.php
@@ -200,7 +200,9 @@ class TDbCommand extends TComponent
protected function getDebugStatementText()
{
if(Prado::getApplication()->getMode() === TApplicationMode::Debug)
- return $this->_statement instanceof PDOStatement ? $this->getConnection()->getPdoInstance().$this->_statement->queryString : $this->getText();
+ return $this->_statement instanceof PDOStatement ?
+ $this->_statement->queryString
+ : $this->getText();
}
/**