Database_Exception [ 1048 ]: Column 'stock_id' cannot be null [ INSERT INTO `stocks_params` (`lastprice`, `eps`, `beta`, `earn`, `diff_year`, `pe`, `pe_otrasl`, `ps`, `ps_otrasl`, `pbv`, `pbv_otrasl`, `ev_ebitda`, `dividends`, `profit`, `marcovic`, `txt`, `txt_base`, `txt_econ`, `stock_id`, `date_mod`) VALUES (0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '[]', NULL, '{\"srn\":14.56,\"risk\":26.12,\"prcn\":213.33,\"prc\":{\"32023\":-3.33,\"42023\":7.16,\"52023\":-8.78,\"62023\":-9.73,\"72023\":22.95,\"82023\":-18.43,\"92023\":8.06,\"102023\":58.65,\"112023\":43.19,\"122023\":53.86,\"12024\":-4.56,\"22024\":25.79,\"32024\":38.39}}', '<hr/>', '', '', NULL, '2024-03-28 19:27:14') ]

MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ]

166 			{
167 				// This benchmark is worthless
168 				Profiler::delete($benchmark);
169 			}
170 
171 			throw new Database_Exception(':error [ :query ]', array(
172 				':error' => $this->_connection->error,
173 				':query' => $sql
174 			), $this->_connection->errno);
175 		}
176 
  1. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQLi->query(arguments)

  2. APPPATH/classes/Model/Stock.php [ 141 ] » Kohana_Database_Query->execute()

  3. APPPATH/classes/Model/Stock.php [ 1896 ] » Model_Stock->setStockData(arguments)

  4. APPPATH/classes/Model/Post.php [ 247 ] » Model_Stock->stockInfo(arguments)

  5. APPPATH/classes/Controller/Posts.php [ 2594 ] » Model_Post->info(arguments)

  6. SYSPATH/classes/Kohana/Controller.php [ 85 ] » Controller_Posts->action_info()

  7. {PHP internal call} » Kohana_Controller->execute()

  8. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 98 ] » ReflectionMethod->invoke(arguments)

  9. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  10. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

  11. DOCROOT/index.php [ 110 ] » Kohana_Request->execute()

Environment