diff options
author | rojaro <> | 2009-07-13 13:56:07 +0000 |
---|---|---|
committer | rojaro <> | 2009-07-13 13:56:07 +0000 |
commit | b4b2c7e5e2eadd48b344538823dcf5645939ba44 (patch) | |
tree | 7e10a68d038fe37d71f7f7a8552136cecfb38183 /framework/Db/TDbCommand.php | |
parent | d6ef8e39d858de50107950180ea111349e4b0d6f (diff) |
- removed old schema directory
- some cleanups
Diffstat (limited to 'framework/Db/TDbCommand.php')
-rwxr-xr-x | framework/Db/TDbCommand.php | 10 |
1 files changed, 5 insertions, 5 deletions
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()); } |