{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/parser/issues/16","repository_url":"https://api.github.com/repos/pingcap/parser","labels_url":"https://api.github.com/repos/pingcap/parser/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/parser/issues/16/comments","events_url":"https://api.github.com/repos/pingcap/parser/issues/16/events","html_url":"https://github.com/pingcap/parser/issues/16","id":377408470,"node_id":"MDU6SXNzdWUzNzc0MDg0NzA=","number":16,"title":"incompatible with MySQL when calculate display length of numeric type ","user":{"login":"bytewatch","id":36727460,"node_id":"MDQ6VXNlcjM2NzI3NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/36727460?v=4","gravatar_id":"","url":"https://api.github.com/users/bytewatch","html_url":"https://github.com/bytewatch","followers_url":"https://api.github.com/users/bytewatch/followers","following_url":"https://api.github.com/users/bytewatch/following{/other_user}","gists_url":"https://api.github.com/users/bytewatch/gists{/gist_id}","starred_url":"https://api.github.com/users/bytewatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bytewatch/subscriptions","organizations_url":"https://api.github.com/users/bytewatch/orgs","repos_url":"https://api.github.com/users/bytewatch/repos","events_url":"https://api.github.com/users/bytewatch/events{/privacy}","received_events_url":"https://api.github.com/users/bytewatch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-05T13:50:24Z","updated_at":"2018-11-05T14:06:03Z","closed_at":null,"author_association":"NONE","body":"# Problem\r\nWhen parsing ddl, and when no Flen assigned, TiDB's parse result is not compatible with MySQL.\r\n\r\nThese are types  after  ddl executed by MySQL 5.7:\r\n* tinyint(3) unsigned\r\n* smallint(5) unsigned\r\n* mediumint(8) unsigned\r\n* int(10) unsigned\r\n\r\nThese are types after parsed by TiDB parser: \r\n* tinyint(4) unsigned\r\n* smallint(6) unsigned\r\n* mediumint(9) unsigned\r\n* int(11) unsigned\r\n\r\n# Cause\r\nBecause func `FieldType.CompactStr()` in file types/field_type.go  doesn't take account the sign of numeric.\r\n\r\n# Fix\r\nRefer souce of MySQL 5.7, take account the sign of numeric, when calculate default field length.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pingcap/parser/issues/comments/435886915","html_url":"https://github.com/pingcap/parser/issues/16#issuecomment-435886915","issue_url":"https://api.github.com/repos/pingcap/parser/issues/16","id":435886915,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTg4NjkxNQ==","user":{"login":"bytewatch","id":36727460,"node_id":"MDQ6VXNlcjM2NzI3NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/36727460?v=4","gravatar_id":"","url":"https://api.github.com/users/bytewatch","html_url":"https://github.com/bytewatch","followers_url":"https://api.github.com/users/bytewatch/followers","following_url":"https://api.github.com/users/bytewatch/following{/other_user}","gists_url":"https://api.github.com/users/bytewatch/gists{/gist_id}","starred_url":"https://api.github.com/users/bytewatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bytewatch/subscriptions","organizations_url":"https://api.github.com/users/bytewatch/orgs","repos_url":"https://api.github.com/users/bytewatch/repos","events_url":"https://api.github.com/users/bytewatch/events{/privacy}","received_events_url":"https://api.github.com/users/bytewatch/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T14:06:03Z","updated_at":"2018-11-05T14:06:03Z","author_association":"NONE","body":"have a look at PR #17 "}}
{"actor":{"display_login":"bytewatch"}}