pradosoft / prado

Prado - Component Framework for PHP
Other
187 stars 70 forks source link

[Timetracker] Error when create new user #323

Closed ctrlaltca closed 10 years ago

ctrlaltca commented 10 years ago

From ysf.herm...@gmail.com on May 12, 2011 11:06:43

What steps will reproduce the problem? 1. http://www.pradoframework.com/demos/time-tracker/index.php?page=TimeTracker.Login 2. create new user and than press next button What is the expected output? What do you see instead? TDbCommand failed to execute the SQL statement " INSERT INTO users (Username, Password, EmailAddress) VALUES (?, ?, ?) ": SQLSTATE[HY000]: General error: 5 database is locked

Source File

/var/www/localhost/library/prado/framework/Data/TDbCommand.php (197)

0186: // Prado::trace('Execute Command: '.$this->getDebugStatementText(), 'System.Data'); 0187: if($this->_statement instanceof PDOStatement) 0188: { 0189: $this->_statement->execute(); 0190: return $this->_statement->rowCount(); 0191: } 0192: else 0193: return $this->getConnection()->getPdoInstance()->exec($this->getText()); 0194: } 0195: catch(Exception $e) 0196: { 0197: throw new TDbException('dbcommand_execute_failed',$e->getMessage(),$this->getDebugStatementText()); 0198: } 0199: } 0200: 0201: /* 0202: * @return String prepared SQL text for debugging purposes. 0203: / 0204: public function getDebugStatementText() 0205: { 0206: if(Prado::getApplication()->getMode() === TApplicationMode::Debug) 0207: return $this->_statement instanceof PDOStatement ? 0208: $this->_statement->queryString 0209: : $this->getText(); What version of the product are you using? On what operating system? online demo for Time tracker Please provide any additional information below.

Original issue: http://code.google.com/p/prado3/issues/detail?id=322

ctrlaltca commented 10 years ago

From rojaro@gmail.com on May 12, 2011 02:29:27

Thanks for your report, the problem has been fixed :)

Status: Fixed