{"action":"closed","issue":{"url":"https://api.github.com/repos/fukamachi/integral/issues/7","labels_url":"https://api.github.com/repos/fukamachi/integral/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/fukamachi/integral/issues/7/comments","events_url":"https://api.github.com/repos/fukamachi/integral/issues/7/events","html_url":"https://github.com/fukamachi/integral/issues/7","id":55401877,"number":7,"title":"bug in reconnect in get-connection","user":{"login":"Rudolph-Miller","id":6536064,"avatar_url":"https://avatars.githubusercontent.com/u/6536064?v=3","gravatar_id":"","url":"https://api.github.com/users/Rudolph-Miller","html_url":"https://github.com/Rudolph-Miller","followers_url":"https://api.github.com/users/Rudolph-Miller/followers","following_url":"https://api.github.com/users/Rudolph-Miller/following{/other_user}","gists_url":"https://api.github.com/users/Rudolph-Miller/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudolph-Miller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudolph-Miller/subscriptions","organizations_url":"https://api.github.com/users/Rudolph-Miller/orgs","repos_url":"https://api.github.com/users/Rudolph-Miller/repos","events_url":"https://api.github.com/users/Rudolph-Miller/events{/privacy}","received_events_url":"https://api.github.com/users/Rudolph-Miller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-25T06:53:16Z","updated_at":"2015-01-25T07:10:12Z","closed_at":"2015-01-25T07:10:12Z","body":"```\r\n@export\r\n(defun get-connection ()\r\n  \"Return the current established connection handle.\"\r\n\r\n  (unless (connected-p)\r\n    (error '<connection-not-established-error>))\r\n\r\n  (let ((handle (connection-handle *db*)))\r\n    (if (dbi:ping handle)\r\n        handle\r\n        (progn\r\n          (dbi:disconnect handle)\r\n          (setf *db* nil)\r\n          (apply #'connect (connection-connect-args *db*))))))\r\n```\r\n\r\nIn the last line of this method, *db* should be nil."}}