{"action":"opened","issue":{"url":"https://api.github.com/repos/GeoffMontee/tds_fdw/issues/35","labels_url":"https://api.github.com/repos/GeoffMontee/tds_fdw/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/GeoffMontee/tds_fdw/issues/35/comments","events_url":"https://api.github.com/repos/GeoffMontee/tds_fdw/issues/35/events","html_url":"https://github.com/GeoffMontee/tds_fdw/issues/35","id":109297916,"number":35,"title":"Trailing spaces should not be removed","user":{"login":"tskenb","id":14301670,"avatar_url":"https://avatars.githubusercontent.com/u/14301670?v=3","gravatar_id":"","url":"https://api.github.com/users/tskenb","html_url":"https://github.com/tskenb","followers_url":"https://api.github.com/users/tskenb/followers","following_url":"https://api.github.com/users/tskenb/following{/other_user}","gists_url":"https://api.github.com/users/tskenb/gists{/gist_id}","starred_url":"https://api.github.com/users/tskenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tskenb/subscriptions","organizations_url":"https://api.github.com/users/tskenb/orgs","repos_url":"https://api.github.com/users/tskenb/repos","events_url":"https://api.github.com/users/tskenb/events{/privacy}","received_events_url":"https://api.github.com/users/tskenb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T13:22:19Z","updated_at":"2015-10-01T13:22:19Z","closed_at":null,"body":"Currently they are.\r\n\r\nIt isn't documented, but the source code to freetds's dbconvert() function shows that a destlen of -1 removes trailing spaces, while a destlen of -1 doesn't, but is the same in other respects.\r\n\r\nHere is a [patch that simply uses -2 instead of -1](https://gist.github.com/tskenb/9ca5d50a680149d7d1c8)."}}