{"action":"created","issue":{"url":"https://api.github.com/repos/django/django/issues/7062","repository_url":"https://api.github.com/repos/django/django","labels_url":"https://api.github.com/repos/django/django/issues/7062/labels{/name}","comments_url":"https://api.github.com/repos/django/django/issues/7062/comments","events_url":"https://api.github.com/repos/django/django/issues/7062/events","html_url":"https://github.com/django/django/pull/7062","id":170610584,"number":7062,"title":"Fixed #22669 -- Fixed QuerySet.bulk_create() with empty model fields on Oracle.","user":{"login":"mnach","id":1246847,"avatar_url":"https://avatars.githubusercontent.com/u/1246847?v=3","gravatar_id":"","url":"https://api.github.com/users/mnach","html_url":"https://github.com/mnach","followers_url":"https://api.github.com/users/mnach/followers","following_url":"https://api.github.com/users/mnach/following{/other_user}","gists_url":"https://api.github.com/users/mnach/gists{/gist_id}","starred_url":"https://api.github.com/users/mnach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnach/subscriptions","organizations_url":"https://api.github.com/users/mnach/orgs","repos_url":"https://api.github.com/users/mnach/repos","events_url":"https://api.github.com/users/mnach/events{/privacy}","received_events_url":"https://api.github.com/users/mnach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-11T10:05:00Z","updated_at":"2016-10-06T18:52:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/7062","html_url":"https://github.com/django/django/pull/7062","diff_url":"https://github.com/django/django/pull/7062.diff","patch_url":"https://github.com/django/django/pull/7062.patch"},"body":"This is a simple solution to fix this bug. \r\n\r\nThe more complex is to generate all parameter for query with input_size attribute. But it meens that all functions `get_db_prep_value` in Field's classes would need to call some function in `DatabaseOperations` instance like [`DateTimeField` do](https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L1443):\r\n```\r\n    def get_db_prep_value(self, value, connection, prepared=False):\r\n        # Casts datetimes into the format expected by the backend\r\n        if not prepared:\r\n            value = self.get_prep_value(value)\r\n        return connection.ops.adapt_datetimefield_value(value)\r\n```\r\n\r\nPlease apply this PR or kick me in the right direction. This bug is open for two years and I'm sick of it. Thank you!"},"comment":{"url":"https://api.github.com/repos/django/django/issues/comments/252055390","html_url":"https://github.com/django/django/pull/7062#issuecomment-252055390","issue_url":"https://api.github.com/repos/django/django/issues/7062","id":252055390,"user":{"login":"timgraham","id":411869,"avatar_url":"https://avatars.githubusercontent.com/u/411869?v=3","gravatar_id":"","url":"https://api.github.com/users/timgraham","html_url":"https://github.com/timgraham","followers_url":"https://api.github.com/users/timgraham/followers","following_url":"https://api.github.com/users/timgraham/following{/other_user}","gists_url":"https://api.github.com/users/timgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/timgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgraham/subscriptions","organizations_url":"https://api.github.com/users/timgraham/orgs","repos_url":"https://api.github.com/users/timgraham/repos","events_url":"https://api.github.com/users/timgraham/events{/privacy}","received_events_url":"https://api.github.com/users/timgraham/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T18:52:59Z","updated_at":"2016-10-06T18:52:59Z","body":"You can squash commits when updating (except for my comment about making the extra tests a separate commit) and uncheck \"Patch needs improvement\" on the ticket so that it returns to the review queue."}}
{"actor":{"display_login":"timgraham"}}