From b4b2c7e5e2eadd48b344538823dcf5645939ba44 Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Mon, 13 Jul 2009 13:56:07 +0000 Subject: - removed old schema directory - some cleanups --- framework/Db/TDbCommand.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'framework/Db/TDbCommand.php') diff --git a/framework/Db/TDbCommand.php b/framework/Db/TDbCommand.php index df98a943..6c3a0074 100755 --- a/framework/Db/TDbCommand.php +++ b/framework/Db/TDbCommand.php @@ -114,7 +114,7 @@ class TDbCommand extends TComponent } catch(Exception $e) { - Prado::log('Error in preparing SQL: '.$this->getText(),TLogger::ERROR,'system.db.TDbCommand'); + Prado::log('Error in preparing SQL: '.$this->getText(),TLogger::ERROR,'system.Db.TDbCommand'); throw new TDbException('TDbCommand failed to prepare the SQL statement: {0}', $e->getMessage()); } @@ -185,7 +185,7 @@ class TDbCommand extends TComponent public function execute() { $params=$this->_connection->enableParamLogging && !empty($this->_params) ? '. Bind with parameter ' . implode(', ',$this->_params) : ''; - Prado::trace('Executing SQL: '.$this->getText().$params,'system.db.TDbCommand'); + Prado::trace('Executing SQL: '.$this->getText().$params,'system.Db.TDbCommand'); try { /*if($this->_connection->enableProfiling) @@ -303,7 +303,7 @@ class TDbCommand extends TComponent private function queryInternal($method,$mode) { $params=$this->_connection->enableParamLogging && !empty($this->_params) ? '. Bind with parameter ' . implode(', ',$this->_params) : ''; - Prado::trace('Querying SQL: '.$this->getText().$params,'system.db.TDbCommand'); + Prado::trace('Querying SQL: '.$this->getText().$params,'system.Db.TDbCommand'); try { /*if($this->_connection->enableProfiling) @@ -313,7 +313,7 @@ class TDbCommand extends TComponent $this->_statement->execute(); else $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText()); - + if($method==='') $result=new TDbDataReader($this); else @@ -332,7 +332,7 @@ class TDbCommand extends TComponent /* if($this->_connection->enableProfiling) Yii::endProfile('system.db.TDbCommand.query('.$this->getText().')','system.db.TDbCommand.query'); */ - Prado::log('Error in querying SQL: '.$this->getText().$params,TLogger::ERROR,'system.db.TDbCommand'); + Prado::log('Error in querying SQL: '.$this->getText().$params,TLogger::ERROR,'system.Db.TDbCommand'); throw new TDbException('TDbCommand failed to execute the SQL statement: {0}', $e->getMessage()); } -- cgit v1.2.3