public function execute()
{
try {
// Do not trace because it will remain even in Performance mode
// Prado::trace('Execute Command: '.$this->getDebugStatementText(), 'Prado\Data');
if ($this->_statement instanceof PDOStatement) {
$this->_statement->execute();
return $this->_statement->rowCount();
} else {
return $this->getConnection()->getPdoInstance()->exec($this->getText());
}
} catch (Exception $e) {
throw new TDbException('dbcommand_execute_failed', $e->getMessage(), $this->getDebugStatementText());
}
}