{"action":"created","issue":{"url":"https://api.github.com/repos/ikkez/f3-cortex/issues/22","repository_url":"https://api.github.com/repos/ikkez/f3-cortex","labels_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/22/comments","events_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/22/events","html_url":"https://github.com/ikkez/f3-cortex/issues/22","id":145633418,"number":22,"title":"After update, shows up glich","user":{"login":"jekabsmilbrets","id":4932041,"avatar_url":"https://avatars.githubusercontent.com/u/4932041?v=3","gravatar_id":"","url":"https://api.github.com/users/jekabsmilbrets","html_url":"https://github.com/jekabsmilbrets","followers_url":"https://api.github.com/users/jekabsmilbrets/followers","following_url":"https://api.github.com/users/jekabsmilbrets/following{/other_user}","gists_url":"https://api.github.com/users/jekabsmilbrets/gists{/gist_id}","starred_url":"https://api.github.com/users/jekabsmilbrets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekabsmilbrets/subscriptions","organizations_url":"https://api.github.com/users/jekabsmilbrets/orgs","repos_url":"https://api.github.com/users/jekabsmilbrets/repos","events_url":"https://api.github.com/users/jekabsmilbrets/events{/privacy}","received_events_url":"https://api.github.com/users/jekabsmilbrets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-04T09:43:14Z","updated_at":"2016-04-04T18:47:07Z","closed_at":null,"body":"After update/fix for  #21 \r\n\r\nI'm having very interesting glich.\r\n\r\nI have small script that is \"mass-insert\" within transaction, before that hotfix for #21 everything worked perfect, but now i get errors:\r\nbtw all data is inserted with copyfrom($array)\r\n```\r\n  \"errors\": {\r\n    \"serverError\": {\r\n      \"status\": \"Internal Server Error\",\r\n      \"code\": 500,\r\n      \"text\": \"PDOStatement: Unknown column 'industry_code11' in 'field list'\",\r\n      \"trace\": [\r\n        \"[lib/base.php:2041] Base->error(500,'PDOStatement: Unknown column 'industry_code11' in 'field list'')\",\r\n        \"[lib/DB/SQL/Mapper.php:275] DB\\\\SQL->exec('SELECT `id`,`_product`,`_campaign`,`_demograph`,`rotation_code`,`date`,`duration`,`start_date`,`end_date`,`third_party_included`,(industry_code11) AS `industry_code`,(house_number11) AS `house_number`,(event_number11) AS `event_number` FROM `copyrotation` WHERE id=?',[1=>2],0)\",\r\n        \"[lib/DB/SQL/Mapper.php:317] DB\\\\SQL\\\\Mapper->select('`id`,`_product`,`_campaign`,`_demograph`,`rotation_code`,`date`,`duration`,`start_date`,`end_date`,`third_party_included`,(industry_code11) AS `industry_code`,(house_number11) AS `house_number`,(event_number11) AS `event_number`',['id=?',2],['group'=>NULL,'order'=>NULL,'limit'=>0,'offset'=>0],0)\",\r\n        \"[lib/DB/Cursor.php:175] DB\\\\SQL\\\\Mapper->find(['id=?',2],NULL,0)\",\r\n        \"[lib/DB/SQL/Mapper.php:430] DB\\\\Cursor->load(['id=?',2])\",\r\n        \"[lib/DB/Cortex.php:2037] DB\\\\SQL\\\\Mapper->insert()\",\r\n        \"[lib/DB/Cortex.php:1114] DB\\\\Cortex->insert()\",\r\n        \"[app/ControllerTraits/MassInsertTraits.php:16] DB\\\\Cortex->save()\",\r\n        \"[app/ControllerTraits/MassInsertTraits.php:28] Controller\\\\MassInsert->insert_record(ModelCopyRotation::__set_state([]),['_product'=>'1','_campaign'=>'1','_sales_areas'=>'1,2','_demograph'=>'5','rotation_code'=>'rotation_code11','date'=>'2015-12-01','duration'=>'30','start_date'=>'2015-12-01','end_date'=>'2015-12-31','industry_code'=>'industry_code11','house_number'=>'house_number11','event_number'=>'event_number11','third_party_included'=>'1'])\",\r\n```\r\n\r\nits intersting as its trying to select actual value as field name, why ?!"},"comment":{"url":"https://api.github.com/repos/ikkez/f3-cortex/issues/comments/205443743","html_url":"https://github.com/ikkez/f3-cortex/issues/22#issuecomment-205443743","issue_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/22","id":205443743,"user":{"login":"ikkez","id":1177647,"avatar_url":"https://avatars.githubusercontent.com/u/1177647?v=3","gravatar_id":"","url":"https://api.github.com/users/ikkez","html_url":"https://github.com/ikkez","followers_url":"https://api.github.com/users/ikkez/followers","following_url":"https://api.github.com/users/ikkez/following{/other_user}","gists_url":"https://api.github.com/users/ikkez/gists{/gist_id}","starred_url":"https://api.github.com/users/ikkez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikkez/subscriptions","organizations_url":"https://api.github.com/users/ikkez/orgs","repos_url":"https://api.github.com/users/ikkez/repos","events_url":"https://api.github.com/users/ikkez/events{/privacy}","received_events_url":"https://api.github.com/users/ikkez/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T18:47:07Z","updated_at":"2016-04-04T18:47:07Z","body":"should be fixed now."}}