{"action":"created","issue":{"url":"https://api.github.com/repos/go-gorp/gorp/issues/266","labels_url":"https://api.github.com/repos/go-gorp/gorp/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/go-gorp/gorp/issues/266/comments","events_url":"https://api.github.com/repos/go-gorp/gorp/issues/266/events","html_url":"https://github.com/go-gorp/gorp/issues/266","id":92074427,"number":266,"title":"Model struct fields are not found during fetch when size: tag is present","user":{"login":"cs2dsb","id":1633999,"avatar_url":"https://avatars.githubusercontent.com/u/1633999?v=3","gravatar_id":"","url":"https://api.github.com/users/cs2dsb","html_url":"https://github.com/cs2dsb","followers_url":"https://api.github.com/users/cs2dsb/followers","following_url":"https://api.github.com/users/cs2dsb/following{/other_user}","gists_url":"https://api.github.com/users/cs2dsb/gists{/gist_id}","starred_url":"https://api.github.com/users/cs2dsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs2dsb/subscriptions","organizations_url":"https://api.github.com/users/cs2dsb/orgs","repos_url":"https://api.github.com/users/cs2dsb/repos","events_url":"https://api.github.com/users/cs2dsb/events{/privacy}","received_events_url":"https://api.github.com/users/cs2dsb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/go-gorp/gorp/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"qrawl","id":4400408,"avatar_url":"https://avatars.githubusercontent.com/u/4400408?v=3","gravatar_id":"","url":"https://api.github.com/users/qrawl","html_url":"https://github.com/qrawl","followers_url":"https://api.github.com/users/qrawl/followers","following_url":"https://api.github.com/users/qrawl/following{/other_user}","gists_url":"https://api.github.com/users/qrawl/gists{/gist_id}","starred_url":"https://api.github.com/users/qrawl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qrawl/subscriptions","organizations_url":"https://api.github.com/users/qrawl/orgs","repos_url":"https://api.github.com/users/qrawl/repos","events_url":"https://api.github.com/users/qrawl/events{/privacy}","received_events_url":"https://api.github.com/users/qrawl/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-30T11:58:56Z","updated_at":"2015-06-30T13:03:33Z","closed_at":"2015-06-30T13:02:31Z","body":"Split from #265 as requested by @GeertJohan \r\n\r\nFields with size: specified are not found when mapping sql column results back to the structure.\r\n\r\nI'm using Windows. I've taken code @qrawl posted in #265 and added a fetch after creating the database and I get the same error I was having \"no fields [...] in Post\" - the missing fields correspond to those with size: set.\r\n\r\nThe full code, the log and a screenshot of the database it created are [in this gist](https://gist.github.com/cs2dsb/5a0efee98e1725fd2723)\r\n\r\nI've was using postgres when I originally had the issue but this example is using sqllite for ease of sharing."},"comment":{"url":"https://api.github.com/repos/go-gorp/gorp/issues/comments/117170152","html_url":"https://github.com/go-gorp/gorp/issues/266#issuecomment-117170152","issue_url":"https://api.github.com/repos/go-gorp/gorp/issues/266","id":117170152,"user":{"login":"GeertJohan","id":564501,"avatar_url":"https://avatars.githubusercontent.com/u/564501?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertJohan","html_url":"https://github.com/GeertJohan","followers_url":"https://api.github.com/users/GeertJohan/followers","following_url":"https://api.github.com/users/GeertJohan/following{/other_user}","gists_url":"https://api.github.com/users/GeertJohan/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertJohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertJohan/subscriptions","organizations_url":"https://api.github.com/users/GeertJohan/orgs","repos_url":"https://api.github.com/users/GeertJohan/repos","events_url":"https://api.github.com/users/GeertJohan/events{/privacy}","received_events_url":"https://api.github.com/users/GeertJohan/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T13:03:33Z","updated_at":"2015-06-30T13:03:33Z","body":"Thanks @cs2dsb for creating a detailed report"}}