{"action":"created","issue":{"url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/115","labels_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/115/comments","events_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/115/events","html_url":"https://github.com/kvesteri/sqlalchemy-utils/pull/115","id":53520099,"number":115,"title":"Update database.py","user":{"login":"orf","id":1027207,"avatar_url":"https://avatars.githubusercontent.com/u/1027207?v=3","gravatar_id":"","url":"https://api.github.com/users/orf","html_url":"https://github.com/orf","followers_url":"https://api.github.com/users/orf/followers","following_url":"https://api.github.com/users/orf/following{/other_user}","gists_url":"https://api.github.com/users/orf/gists{/gist_id}","starred_url":"https://api.github.com/users/orf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orf/subscriptions","organizations_url":"https://api.github.com/users/orf/orgs","repos_url":"https://api.github.com/users/orf/repos","events_url":"https://api.github.com/users/orf/events{/privacy}","received_events_url":"https://api.github.com/users/orf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-06T14:33:56Z","updated_at":"2015-01-07T10:32:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/pulls/115","html_url":"https://github.com/kvesteri/sqlalchemy-utils/pull/115","diff_url":"https://github.com/kvesteri/sqlalchemy-utils/pull/115.diff","patch_url":"https://github.com/kvesteri/sqlalchemy-utils/pull/115.patch"},"body":"Postgres server_version can be more than just a number, this fails if it is for instance \"9.4rc1\". This patch should fix this"},"comment":{"url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/comments/69004328","html_url":"https://github.com/kvesteri/sqlalchemy-utils/pull/115#issuecomment-69004328","issue_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/115","id":69004328,"user":{"login":"kvesteri","id":398714,"avatar_url":"https://avatars.githubusercontent.com/u/398714?v=3","gravatar_id":"","url":"https://api.github.com/users/kvesteri","html_url":"https://github.com/kvesteri","followers_url":"https://api.github.com/users/kvesteri/followers","following_url":"https://api.github.com/users/kvesteri/following{/other_user}","gists_url":"https://api.github.com/users/kvesteri/gists{/gist_id}","starred_url":"https://api.github.com/users/kvesteri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvesteri/subscriptions","organizations_url":"https://api.github.com/users/kvesteri/orgs","repos_url":"https://api.github.com/users/kvesteri/repos","events_url":"https://api.github.com/users/kvesteri/events{/privacy}","received_events_url":"https://api.github.com/users/kvesteri/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T10:32:23Z","updated_at":"2015-01-07T10:32:23Z","body":"I think drop_database should terminate connections (maybe this should be optional though). You can easily create tests for it by mocking the query result (you can use http://has207.github.io/flexmock/ for this)"}}