{"action":"closed","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/1330","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/1330/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/1330/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/1330/events","html_url":"https://github.com/typeorm/typeorm/issues/1330","id":281105496,"number":1330,"title":"tstzrange","user":{"login":"jamiewinder","id":4442179,"avatar_url":"https://avatars3.githubusercontent.com/u/4442179?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiewinder","html_url":"https://github.com/jamiewinder","followers_url":"https://api.github.com/users/jamiewinder/followers","following_url":"https://api.github.com/users/jamiewinder/following{/other_user}","gists_url":"https://api.github.com/users/jamiewinder/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiewinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiewinder/subscriptions","organizations_url":"https://api.github.com/users/jamiewinder/orgs","repos_url":"https://api.github.com/users/jamiewinder/repos","events_url":"https://api.github.com/users/jamiewinder/events{/privacy}","received_events_url":"https://api.github.com/users/jamiewinder/received_events","type":"User","site_admin":false},"labels":[{"id":628502779,"url":"https://api.github.com/repos/typeorm/typeorm/labels/comp:%20schema%20sync","name":"comp: schema sync","color":"1d76db","default":false},{"id":712054568,"url":"https://api.github.com/repos/typeorm/typeorm/labels/driver:%20postgres","name":"driver: postgres","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":{"login":"AlexMesser","id":17142628,"avatar_url":"https://avatars3.githubusercontent.com/u/17142628?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexMesser","html_url":"https://github.com/AlexMesser","followers_url":"https://api.github.com/users/AlexMesser/followers","following_url":"https://api.github.com/users/AlexMesser/following{/other_user}","gists_url":"https://api.github.com/users/AlexMesser/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMesser/subscriptions","organizations_url":"https://api.github.com/users/AlexMesser/orgs","repos_url":"https://api.github.com/users/AlexMesser/repos","events_url":"https://api.github.com/users/AlexMesser/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMesser/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexMesser","id":17142628,"avatar_url":"https://avatars3.githubusercontent.com/u/17142628?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexMesser","html_url":"https://github.com/AlexMesser","followers_url":"https://api.github.com/users/AlexMesser/followers","following_url":"https://api.github.com/users/AlexMesser/following{/other_user}","gists_url":"https://api.github.com/users/AlexMesser/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMesser/subscriptions","organizations_url":"https://api.github.com/users/AlexMesser/orgs","repos_url":"https://api.github.com/users/AlexMesser/repos","events_url":"https://api.github.com/users/AlexMesser/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMesser/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/typeorm/typeorm/milestones/1","html_url":"https://github.com/typeorm/typeorm/milestone/1","labels_url":"https://api.github.com/repos/typeorm/typeorm/milestones/1/labels","id":2843035,"number":1,"title":"0.2.0","description":"","creator":{"login":"pleerock","id":1753397,"avatar_url":"https://avatars3.githubusercontent.com/u/1753397?v=4","gravatar_id":"","url":"https://api.github.com/users/pleerock","html_url":"https://github.com/pleerock","followers_url":"https://api.github.com/users/pleerock/followers","following_url":"https://api.github.com/users/pleerock/following{/other_user}","gists_url":"https://api.github.com/users/pleerock/gists{/gist_id}","starred_url":"https://api.github.com/users/pleerock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleerock/subscriptions","organizations_url":"https://api.github.com/users/pleerock/orgs","repos_url":"https://api.github.com/users/pleerock/repos","events_url":"https://api.github.com/users/pleerock/events{/privacy}","received_events_url":"https://api.github.com/users/pleerock/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":94,"state":"open","created_at":"2017-10-17T12:17:45Z","updated_at":"2018-03-07T22:49:53Z","due_on":"2018-04-01T07:00:00Z","closed_at":null},"comments":2,"created_at":"2017-12-11T17:34:52Z","updated_at":"2018-03-07T22:49:53Z","closed_at":"2018-03-07T22:49:53Z","author_association":"NONE","body":"I have a PostgreSQL column using the 'tstzrange' type. If I specify this in typeorm:\r\n\r\n```\r\n@Column(\"tstzrange\")\r\npublic interval: any;\r\n```\r\nThen I get an warning:\r\n\r\n`DataTypeNotSupportedError: Data type \"tstzrange\" in \"MyModel.interval\" is\r\nnot supported by \"postgres\" database.`\r\n\r\nThe value I get back is also a string. Incidentally if I change the column type to `text`, the warning goes away and I get the normal postgres representation of the range as a string. This the only working around I have (and have to do this for custom types I've created in Postgres too). Is there a better way?"}}
{"actor":{"display_login":"AlexMesser"}}