TDbCommand failed to execute the SQL statement "INSERT INTO `_track_search`(`search_text`, `total_search`, `date_last_search`) VALUES (:search_text, :total_search, :date_last_search)": SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'search_text' at row 1 (Error Code: 0)
${PradoFramework}/Data/TDbCommand.php (195)
0184: {
0185: try {
0186: // Do not trace because it will remain even in Performance mode
0187: // Prado::trace('Execute Command: '.$this->getDebugStatementText(), TDbCommand::class);
0188: if ($this->_statement instanceof PDOStatement) {
0189: $this->_statement->execute();
0190: return $this->_statement->rowCount();
0191: } else {
0192: return $this->getConnection()->getPdoInstance()->exec($this->getText());
0193: }
0194: } catch (Exception $e) {
0195: throw new TDbException('dbcommand_execute_failed', $e->getMessage(), $this->getDebugStatementText());
0196: }
0197: }
0198:
0199: /**
0200: * @return string prepared SQL text for debugging purposes.
0201: */
0202: public function getDebugStatementText()
0203: {
0204: //if(Prado::getApplication()->getMode() === TApplicationMode::Debug)
0205: return $this->_statement instanceof PDOStatement ?
0206: $this->_statement->queryString
0207: : $this->getText();
#0 ${PradoFramework}/Data/DataGateway/TDataGatewayCommand.php(368): Prado\Data\TDbCommand->execute()
#1 ${PradoFramework}/Data/ActiveRecord/TActiveRecordGateway.php(311): Prado\Data\DataGateway\TDataGatewayCommand->insert()
#2 ${PradoFramework}/Data/ActiveRecord/TActiveRecord.php(439): Prado\Data\ActiveRecord\TActiveRecordGateway->insert()
#3 ${DocumentRoot}/protected/pages/product.php(528): Prado\Data\ActiveRecord\TActiveRecord->save()
#4 ${DocumentRoot}/protected/pages/product.php(329): product->trackingSearch()
#5 ${DocumentRoot}/protected/pages/product.php(64): product->getListProduct()
#6 ${DocumentRoot}/protected/pages/product.php(23): product->loadData()
#7 ${PradoFramework}/Web/UI/TControl.php(1376): product->onLoad()
#8 ${PradoFramework}/Web/UI/TPage.php(242): Prado\Web\UI\TControl->loadRecursive()
#9 ${PradoFramework}/Web/UI/TPage.php(222): Prado\Web\UI\TPage->processNormalRequest()
#10 ${PradoFramework}/Web/Services/TPageService.php(536): Prado\Web\UI\TPage->run()
#11 ${PradoFramework}/Web/Services/TPageService.php(454): Prado\Web\Services\TPageService->runPage()
#12 ${PradoFramework}/TApplication.php(1329): Prado\Web\Services\TPageService->run()
#13 ${PradoFramework}/TApplication.php(410): Prado\TApplication->runService()
#14 ${DocumentRoot}/index.php(33): Prado\TApplication->run()
#15 {main}