{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/7657","labels_url":"https://api.github.com/repos/laravel/framework/issues/7657/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/7657/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/7657/events","html_url":"https://github.com/laravel/framework/pull/7657","id":59341060,"number":7657,"title":"Return true in Query Builder's insert() method if empty array provided","user":{"login":"kokokurak","id":8510621,"avatar_url":"https://avatars.githubusercontent.com/u/8510621?v=3","gravatar_id":"","url":"https://api.github.com/users/kokokurak","html_url":"https://github.com/kokokurak","followers_url":"https://api.github.com/users/kokokurak/followers","following_url":"https://api.github.com/users/kokokurak/following{/other_user}","gists_url":"https://api.github.com/users/kokokurak/gists{/gist_id}","starred_url":"https://api.github.com/users/kokokurak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokokurak/subscriptions","organizations_url":"https://api.github.com/users/kokokurak/orgs","repos_url":"https://api.github.com/users/kokokurak/repos","events_url":"https://api.github.com/users/kokokurak/events{/privacy}","received_events_url":"https://api.github.com/users/kokokurak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T13:04:07Z","updated_at":"2015-03-01T20:54:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/7657","html_url":"https://github.com/laravel/framework/pull/7657","diff_url":"https://github.com/laravel/framework/pull/7657.diff","patch_url":"https://github.com/laravel/framework/pull/7657.patch"},"body":"In Query Builder, there is an error returned when empty array is provided as the first parameter. It makes SQL queries use the following syntax:\r\n```sql\r\nINSERT INTO `table` () VALUES ()\r\n```\r\nUnfortunetely, SQL throws an errors for empty list of values. I think it shouldn't be an error to provide empty array for insertion, instead it can just do nothing.\r\n\r\nRelated issue: #7493 "},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/76630030","html_url":"https://github.com/laravel/framework/pull/7657#issuecomment-76630030","issue_url":"https://api.github.com/repos/laravel/framework/issues/7657","id":76630030,"user":{"login":"JosephSilber","id":1403741,"avatar_url":"https://avatars.githubusercontent.com/u/1403741?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephSilber","html_url":"https://github.com/JosephSilber","followers_url":"https://api.github.com/users/JosephSilber/followers","following_url":"https://api.github.com/users/JosephSilber/following{/other_user}","gists_url":"https://api.github.com/users/JosephSilber/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephSilber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephSilber/subscriptions","organizations_url":"https://api.github.com/users/JosephSilber/orgs","repos_url":"https://api.github.com/users/JosephSilber/repos","events_url":"https://api.github.com/users/JosephSilber/events{/privacy}","received_events_url":"https://api.github.com/users/JosephSilber/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T20:54:16Z","updated_at":"2015-03-01T20:54:16Z","body":"I would consider this an error in your code.\r\n\r\nI believe the current functionality (it throwing a SQL error) is appropriate."}}