{"action":"created","issue":{"url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/104","labels_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/104/comments","events_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/104/events","html_url":"https://github.com/JSQLParser/JSqlParser/issues/104","id":56361276,"number":104,"title":"MySQL inline primary keys","user":{"login":"azapps","id":485429,"avatar_url":"https://avatars.githubusercontent.com/u/485429?v=3","gravatar_id":"","url":"https://api.github.com/users/azapps","html_url":"https://github.com/azapps","followers_url":"https://api.github.com/users/azapps/followers","following_url":"https://api.github.com/users/azapps/following{/other_user}","gists_url":"https://api.github.com/users/azapps/gists{/gist_id}","starred_url":"https://api.github.com/users/azapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azapps/subscriptions","organizations_url":"https://api.github.com/users/azapps/orgs","repos_url":"https://api.github.com/users/azapps/repos","events_url":"https://api.github.com/users/azapps/events{/privacy}","received_events_url":"https://api.github.com/users/azapps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-03T10:45:15Z","updated_at":"2015-02-11T21:28:56Z","closed_at":null,"body":"The parser does not find the primary key in the following statement:\r\n\r\n```sql\r\nCREATE TABLE animals (\r\nid INT PRIMARY KEY NOT NULL\r\n);\r\n```\r\n\r\nthis statement is of course not a problem:\r\n\r\n```sql\r\nCREATE TABLE animals (\r\nid INT NOT NULL,\r\nPRIMARY KEY (id));\r\n```\r\n\r\nThe same thing occurs obviously also with inline Indexes.\r\n\r\nI don't know if that is easy to fix. And it does not have a high priority for me ;)"},"comment":{"url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/comments/73968547","html_url":"https://github.com/JSQLParser/JSqlParser/issues/104#issuecomment-73968547","issue_url":"https://api.github.com/repos/JSQLParser/JSqlParser/issues/104","id":73968547,"user":{"login":"wumpz","id":1569337,"avatar_url":"https://avatars.githubusercontent.com/u/1569337?v=3","gravatar_id":"","url":"https://api.github.com/users/wumpz","html_url":"https://github.com/wumpz","followers_url":"https://api.github.com/users/wumpz/followers","following_url":"https://api.github.com/users/wumpz/following{/other_user}","gists_url":"https://api.github.com/users/wumpz/gists{/gist_id}","starred_url":"https://api.github.com/users/wumpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wumpz/subscriptions","organizations_url":"https://api.github.com/users/wumpz/orgs","repos_url":"https://api.github.com/users/wumpz/repos","events_url":"https://api.github.com/users/wumpz/events{/privacy}","received_events_url":"https://api.github.com/users/wumpz/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T21:28:55Z","updated_at":"2015-02-11T21:28:55Z","body":"Sure it would be better. Is this something you could provide? Pull requests are wellcome."}}