What steps will reproduce the problem?
1.http://www.pradoframework.com/demos/time-tracker/index.php?page=TimeTracker.Lo
gin
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->getDebugStatemen
tText());
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 reported on code.google.com by ysf.herm...@gmail.com on 12 May 2011 at 9:06
Original issue reported on code.google.com by
ysf.herm...@gmail.com
on 12 May 2011 at 9:06