TDbException

Description

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

Source File

/home/www.mipasteleria.com/www/prado/framework/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.mipasteleria.com/www/prado/framework/Data/Common/Mysql/TMysqlMetaData.php(86): TDbCommand->query()
#1 /home/www.mipasteleria.com/www/prado/framework/Data/Common/TDbMetaData.php(98): TMysqlMetaData->createTableInfo('paises')
#2 /home/www.mipasteleria.com/www/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(121): TDbMetaData->getTableInfo('paises')
#3 /home/www.mipasteleria.com/www/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(93): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'paises')
#4 /home/www.mipasteleria.com/www/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(138): TActiveRecordGateway->getRecordTableInfo(Object(PaisRecord))
#5 /home/www.mipasteleria.com/www/prado/framework/Data/ActiveRecord/TActiveRecord.php(847): TActiveRecordGateway->getCommand(Object(PaisRecord))
#6 /home/www.mipasteleria.com/www/protected/common/mpPage.php(33): TActiveRecord->__call('findById', Array)
#7 /home/www.mipasteleria.com/www/protected/common/mpPage.php(33): PaisRecord->findById('CL')
#8 /home/www.mipasteleria.com/www/protected/common/mpPage.php(9): mpPage->launchSession()
#9 /home/www.mipasteleria.com/www/prado/framework/Web/UI/TPage.php(211): mpPage->onPreInit(NULL)
#10 /home/www.mipasteleria.com/www/prado/framework/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#11 /home/www.mipasteleria.com/www/prado/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#12 /home/www.mipasteleria.com/www/prado/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(Pastelerias), Array)
#13 /home/www.mipasteleria.com/www/prado/framework/TApplication.php(1189): TPageService->run()
#14 /home/www.mipasteleria.com/www/prado/framework/TApplication.php(406): TApplication->runService()
#15 /home/www.mipasteleria.com/www/index.php(24): TApplication->run()
#16 {main}
2019-09-15 21:29 Apache/2.4.7 (Ubuntu) PRADO/3.2.1