{"action":"created","issue":{"url":"https://api.github.com/repos/youtube/vitess/issues/3049","repository_url":"https://api.github.com/repos/youtube/vitess","labels_url":"https://api.github.com/repos/youtube/vitess/issues/3049/labels{/name}","comments_url":"https://api.github.com/repos/youtube/vitess/issues/3049/comments","events_url":"https://api.github.com/repos/youtube/vitess/issues/3049/events","html_url":"https://github.com/youtube/vitess/pull/3049","id":249435909,"number":3049,"title":"add support for a column name as optional argument to DEFAULT","user":{"login":"bbeaudreault","id":116591,"avatar_url":"https://avatars2.githubusercontent.com/u/116591?v=4","gravatar_id":"","url":"https://api.github.com/users/bbeaudreault","html_url":"https://github.com/bbeaudreault","followers_url":"https://api.github.com/users/bbeaudreault/followers","following_url":"https://api.github.com/users/bbeaudreault/following{/other_user}","gists_url":"https://api.github.com/users/bbeaudreault/gists{/gist_id}","starred_url":"https://api.github.com/users/bbeaudreault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbeaudreault/subscriptions","organizations_url":"https://api.github.com/users/bbeaudreault/orgs","repos_url":"https://api.github.com/users/bbeaudreault/repos","events_url":"https://api.github.com/users/bbeaudreault/events{/privacy}","received_events_url":"https://api.github.com/users/bbeaudreault/received_events","type":"User","site_admin":false},"labels":[{"id":318803109,"url":"https://api.github.com/repos/youtube/vitess/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-10T18:28:31Z","updated_at":"2017-08-10T18:36:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/youtube/vitess/pulls/3049","html_url":"https://github.com/youtube/vitess/pull/3049","diff_url":"https://github.com/youtube/vitess/pull/3049.diff","patch_url":"https://github.com/youtube/vitess/pull/3049.patch"},"body":"According to https://dev.mysql.com/doc/refman/5.7/en/insert.html:\r\n\r\n> Use the keyword DEFAULT to set a column explicitly to its default value. This makes it easier to write INSERT statements that assign values to all but a few columns, because it enables you to avoid writing an incomplete VALUES list that does not include a value for each column in the table. Otherwise, you would have to write out the list of column names corresponding to each value in the VALUES list.\r\n>\r\n> You can also use DEFAULT(col_name) as a more general form that can be used in expressions to produce a given column's default value.\r\n\r\nSee also: https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_default\r\n\r\ncc @acharis "},"comment":{"url":"https://api.github.com/repos/youtube/vitess/issues/comments/321637187","html_url":"https://github.com/youtube/vitess/pull/3049#issuecomment-321637187","issue_url":"https://api.github.com/repos/youtube/vitess/issues/3049","id":321637187,"user":{"login":"bbeaudreault","id":116591,"avatar_url":"https://avatars2.githubusercontent.com/u/116591?v=4","gravatar_id":"","url":"https://api.github.com/users/bbeaudreault","html_url":"https://github.com/bbeaudreault","followers_url":"https://api.github.com/users/bbeaudreault/followers","following_url":"https://api.github.com/users/bbeaudreault/following{/other_user}","gists_url":"https://api.github.com/users/bbeaudreault/gists{/gist_id}","starred_url":"https://api.github.com/users/bbeaudreault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbeaudreault/subscriptions","organizations_url":"https://api.github.com/users/bbeaudreault/orgs","repos_url":"https://api.github.com/users/bbeaudreault/repos","events_url":"https://api.github.com/users/bbeaudreault/events{/privacy}","received_events_url":"https://api.github.com/users/bbeaudreault/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T18:36:33Z","updated_at":"2017-08-10T18:36:33Z","body":"@sougou how is that unreasonable? I think if it works in mysql it should work in vitess, within reason considering our need to route queries appropriately for sharded databases.\r\n\r\nAlso, are you suggesting a change to this PR or a future sanity check feature?"}}
{"actor":{"display_login":"bbeaudreault"}}