TDbException

Description

TDbCommand failed to execute the query SQL "SHOW FULL FIELDS FROM `flats`": SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine

Source File

/home/www/neocity/framework_3_2_3/Data/TDbCommand.php (231)

0220:         try
0221:         {
0222:             // Prado::trace('Query: '.$this->getDebugStatementText(), 'System.Data');
0223:             if($this->_statement instanceof PDOStatement)
0224:                 $this->_statement->execute();
0225:             else
0226:                 $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText());
0227:             return new TDbDataReader($this);
0228:         }
0229:         catch(Exception $e)
0230:         {
0231: throw new TDbException('dbcommand_query_failed',$e->getMessage(),$this->getDebugStatementText());
0232: } 0233: } 0234: 0235: /** 0236: * Executes the SQL statement and returns the first row of the result. 0237: * This is a convenient method of {@link query} when only the first row of data is needed. 0238: * @param boolean whether the row should be returned as an associated array with 0239: * column names as the keys or the array keys are column indexes (0-based). 0240: * @return array the first row of the query result, false if no result. 0241: * @throws TDbException execution failed 0242: */ 0243: public function queryRow($fetchAssociative=true)

Stack Trace

#0 /home/www/neocity/framework_3_2_3/Data/Common/Mysql/TMysqlMetaData.php(86): TDbCommand->query()
#1 /home/www/neocity/framework_3_2_3/Data/Common/TDbMetaData.php(99): TMysqlMetaData->createTableInfo('flats')
#2 /home/www/neocity/framework_3_2_3/Data/ActiveRecord/TActiveRecordGateway.php(121): TDbMetaData->getTableInfo('flats')
#3 /home/www/neocity/framework_3_2_3/Data/ActiveRecord/TActiveRecordGateway.php(93): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'flats')
#4 /home/www/neocity/framework_3_2_3/Data/ActiveRecord/TActiveRecordGateway.php(138): TActiveRecordGateway->getRecordTableInfo(Object(FlatsRecord))
#5 /home/www/neocity/framework_3_2_3/Data/ActiveRecord/TActiveRecordGateway.php(236): TActiveRecordGateway->getCommand(Object(FlatsRecord))
#6 /home/www/neocity/framework_3_2_3/Data/ActiveRecord/TActiveRecord.php(661): TActiveRecordGateway->findRecordBySql(Object(FlatsRecord), Object(TActiveRecordCriteria))
#7 /home/www/neocity/protected/database/FlatsRecord.php(62): TActiveRecord->findBySql('SELECT MIN(floo...')
#8 /home/www/neocity/protected/components/KLeftFlatSearchResults.php(59): FlatsRecord::getMin(NULL, 'floor')
#9 /home/www/neocity/framework_3_2_3/Web/UI/TControl.php(1279): KLeftFlatSearchResults->onInit(NULL)
#10 /home/www/neocity/framework_3_2_3/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Layout))
#11 /home/www/neocity/framework_3_2_3/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Layout))
#12 /home/www/neocity/framework_3_2_3/Web/UI/TControl.php(1264): TTemplateControl->initRecursive(Object(Layout))
#13 /home/www/neocity/framework_3_2_3/Web/UI/TControl.php(1264): TControl->initRecursive(Object(Layout))
#14 /home/www/neocity/framework_3_2_3/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Investment))
#15 /home/www/neocity/framework_3_2_3/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Investment))
#16 /home/www/neocity/framework_3_2_3/Web/UI/TControl.php(1264): TTemplateControl->initRecursive(Object(Investment))
#17 /home/www/neocity/framework_3_2_3/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#18 /home/www/neocity/framework_3_2_3/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#19 /home/www/neocity/framework_3_2_3/Web/UI/TPage.php(214): TTemplateControl->initRecursive()
#20 /home/www/neocity/framework_3_2_3/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#21 /home/www/neocity/framework_3_2_3/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#22 /home/www/neocity/framework_3_2_3/Web/Services/TPageService.php(470): TPageService->runPage(Object(Investment), Array)
#23 /home/www/neocity/framework_3_2_3/TApplication.php(1221): TPageService->run()
#24 /home/www/neocity/framework_3_2_3/TApplication.php(410): TApplication->runService()
#25 /home/www/neocity/index.php(43): TApplication->run()
#26 {main}
2017-06-25 05:42 Apache/2.2.22 (Debian) PRADO/3.2.3