{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12428","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12428/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12428/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12428/events","html_url":"https://github.com/yiisoft/yii2/pull/12428","id":174531260,"number":12428,"title":"Fixed bug in yii\\db\\mysql\\QueryBuilder","user":{"login":"DrmagicE","id":13395096,"avatar_url":"https://avatars.githubusercontent.com/u/13395096?v=3","gravatar_id":"","url":"https://api.github.com/users/DrmagicE","html_url":"https://github.com/DrmagicE","followers_url":"https://api.github.com/users/DrmagicE/followers","following_url":"https://api.github.com/users/DrmagicE/following{/other_user}","gists_url":"https://api.github.com/users/DrmagicE/gists{/gist_id}","starred_url":"https://api.github.com/users/DrmagicE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrmagicE/subscriptions","organizations_url":"https://api.github.com/users/DrmagicE/orgs","repos_url":"https://api.github.com/users/DrmagicE/repos","events_url":"https://api.github.com/users/DrmagicE/events{/privacy}","received_events_url":"https://api.github.com/users/DrmagicE/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-01T14:00:18Z","updated_at":"2016-09-01T14:02:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/12428","html_url":"https://github.com/yiisoft/yii2/pull/12428","diff_url":"https://github.com/yiisoft/yii2/pull/12428.diff","patch_url":"https://github.com/yiisoft/yii2/pull/12428.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Is bugfix?    | yes\r\n| New feature?  | no\r\n| Breaks BC?    | no\r\n\r\nIn yii\\db\\mysql\\QueryBuilder::insert() function,the $columns should be an array for the foreach.\r\nHere is a simple fix that just turns the param into an array.\r\n\r\nAn example for reproducing the bug:\r\n\r\n-- (without a primary key)\r\ncreate table yiitest（\r\ntest int(11) default 1\r\n）\r\n//The code below will throw a warning\r\n\r\nYii::$db->createCommand()->insert('yiitest',[]);\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/244088295","html_url":"https://github.com/yiisoft/yii2/pull/12428#issuecomment-244088295","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12428","id":244088295,"user":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T14:02:17Z","updated_at":"2016-09-01T14:02:17Z","body":"CHANGELOG entry missing"}}
{"actor":{"display_login":"klimov-paul"}}