TDbException

Description

TDbCommand failed to execute the SQL statement "CREATE TABLE pradocache (itemkey CHAR(128) PRIMARY KEY, value BLOB, expire INT)": SQLSTATE[HY000]: General error: 1 table pradocache already exists

Source File

/home/advermedia/ftp/prado/framework/Data/TDbCommand.php (196)

0185:             // Prado::trace('Execute Command: '.$this->getDebugStatementText(), 'System.Data');
0186:             if($this->_statement instanceof PDOStatement)
0187:             {
0188:                 $this->_statement->execute();
0189:                 return $this->_statement->rowCount();
0190:             }
0191:             else
0192:                 return $this->getConnection()->getPdoInstance()->exec($this->getText());
0193:         }
0194:         catch(Exception $e)
0195:         {
0196: throw new TDbException('dbcommand_execute_failed',$e->getMessage(),$this->getDebugStatementText());
0197: } 0198: } 0199: 0200: /** 0201: * @return String prepared SQL text for debugging purposes. 0202: */ 0203: public function getDebugStatementText() 0204: { 0205: if(Prado::getApplication()->getMode() === TApplicationMode::Debug) 0206: return $this->_statement instanceof PDOStatement ? 0207: $this->_statement->queryString 0208: : $this->getText();

Stack Trace

#0 /home/advermedia/ftp/prado/framework/Caching/TDbCache.php(146): TDbCommand->execute()
#1 /home/advermedia/ftp/prado/framework/TApplication.php(905): TDbCache->init(Object(TXmlElement))
#2 /home/advermedia/ftp/prado/framework/TApplication.php(952): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#3 /home/advermedia/ftp/prado/framework/TApplication.php(370): TApplication->initApplication()
#4 /home/advermedia/ftp/advermedia/index.php(31): TApplication->run()
#5 {main}
2012-02-23 09:43 Apache/2 PRADO/3.1.3