{"action":"created","comment":{"url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/comments/82513476","pull_request_review_id":3417964,"id":82513476,"diff_hunk":"@@ -83,8 +85,8 @@ public void insertTransaction(Transaction transaction) throws StorageException {\n             if (existingType != null) {\n                 stmt.setInt(3, existingType.getId());\n             } else {\n-                insertType(transaction.getType());\n-                stmt.setInt(3, transaction.getType().getId());\n+                database.rollback();","path":"src/main/java/ledger/database/storage/SQLiteDatabase.java","position":18,"original_position":18,"commit_id":"1ac1a826b6b5d74314ea710f3dc724845a8c209c","original_commit_id":"1ac1a826b6b5d74314ea710f3dc724845a8c209c","user":{"login":"cjm721","id":2738614,"avatar_url":"https://avatars.githubusercontent.com/u/2738614?v=3","gravatar_id":"","url":"https://api.github.com/users/cjm721","html_url":"https://github.com/cjm721","followers_url":"https://api.github.com/users/cjm721/followers","following_url":"https://api.github.com/users/cjm721/following{/other_user}","gists_url":"https://api.github.com/users/cjm721/gists{/gist_id}","starred_url":"https://api.github.com/users/cjm721/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjm721/subscriptions","organizations_url":"https://api.github.com/users/cjm721/orgs","repos_url":"https://api.github.com/users/cjm721/repos","events_url":"https://api.github.com/users/cjm721/events{/privacy}","received_events_url":"https://api.github.com/users/cjm721/received_events","type":"User","site_admin":false},"body":"Also at this point has any statement been executed?","created_at":"2016-10-09T02:43:43Z","updated_at":"2016-10-09T02:45:18Z","html_url":"https://github.com/Ledger-Software/Ledger/pull/14#discussion_r82513476","pull_request_url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/comments/82513476"},"html":{"href":"https://github.com/Ledger-Software/Ledger/pull/14#discussion_r82513476"},"pull_request":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14","id":88565792,"html_url":"https://github.com/Ledger-Software/Ledger/pull/14","diff_url":"https://github.com/Ledger-Software/Ledger/pull/14.diff","patch_url":"https://github.com/Ledger-Software/Ledger/pull/14.patch","issue_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues/14","number":14,"state":"open","locked":false,"title":"Added SQL transactions to allow for rollback in case of error","user":{"login":"taylerhow","id":10555067,"avatar_url":"https://avatars.githubusercontent.com/u/10555067?v=3","gravatar_id":"","url":"https://api.github.com/users/taylerhow","html_url":"https://github.com/taylerhow","followers_url":"https://api.github.com/users/taylerhow/followers","following_url":"https://api.github.com/users/taylerhow/following{/other_user}","gists_url":"https://api.github.com/users/taylerhow/gists{/gist_id}","starred_url":"https://api.github.com/users/taylerhow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylerhow/subscriptions","organizations_url":"https://api.github.com/users/taylerhow/orgs","repos_url":"https://api.github.com/users/taylerhow/repos","events_url":"https://api.github.com/users/taylerhow/events{/privacy}","received_events_url":"https://api.github.com/users/taylerhow/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-09T02:24:14Z","updated_at":"2016-10-09T02:45:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"074a48bd392b3596fa97463cfa8fc621a8ce3c1f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14/commits","review_comments_url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14/comments","review_comment_url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues/14/comments","statuses_url":"https://api.github.com/repos/Ledger-Software/Ledger/statuses/1ac1a826b6b5d74314ea710f3dc724845a8c209c","head":{"label":"Ledger-Software:f_refactoring_SQLite_SQLtransactions","ref":"f_refactoring_SQLite_SQLtransactions","sha":"1ac1a826b6b5d74314ea710f3dc724845a8c209c","user":{"login":"Ledger-Software","id":21131744,"avatar_url":"https://avatars.githubusercontent.com/u/21131744?v=3","gravatar_id":"","url":"https://api.github.com/users/Ledger-Software","html_url":"https://github.com/Ledger-Software","followers_url":"https://api.github.com/users/Ledger-Software/followers","following_url":"https://api.github.com/users/Ledger-Software/following{/other_user}","gists_url":"https://api.github.com/users/Ledger-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/Ledger-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ledger-Software/subscriptions","organizations_url":"https://api.github.com/users/Ledger-Software/orgs","repos_url":"https://api.github.com/users/Ledger-Software/repos","events_url":"https://api.github.com/users/Ledger-Software/events{/privacy}","received_events_url":"https://api.github.com/users/Ledger-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":66108741,"name":"Ledger","full_name":"Ledger-Software/Ledger","owner":{"login":"Ledger-Software","id":21131744,"avatar_url":"https://avatars.githubusercontent.com/u/21131744?v=3","gravatar_id":"","url":"https://api.github.com/users/Ledger-Software","html_url":"https://github.com/Ledger-Software","followers_url":"https://api.github.com/users/Ledger-Software/followers","following_url":"https://api.github.com/users/Ledger-Software/following{/other_user}","gists_url":"https://api.github.com/users/Ledger-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/Ledger-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ledger-Software/subscriptions","organizations_url":"https://api.github.com/users/Ledger-Software/orgs","repos_url":"https://api.github.com/users/Ledger-Software/repos","events_url":"https://api.github.com/users/Ledger-Software/events{/privacy}","received_events_url":"https://api.github.com/users/Ledger-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ledger-Software/Ledger","description":null,"fork":false,"url":"https://api.github.com/repos/Ledger-Software/Ledger","forks_url":"https://api.github.com/repos/Ledger-Software/Ledger/forks","keys_url":"https://api.github.com/repos/Ledger-Software/Ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ledger-Software/Ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ledger-Software/Ledger/teams","hooks_url":"https://api.github.com/repos/Ledger-Software/Ledger/hooks","issue_events_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues/events{/number}","events_url":"https://api.github.com/repos/Ledger-Software/Ledger/events","assignees_url":"https://api.github.com/repos/Ledger-Software/Ledger/assignees{/user}","branches_url":"https://api.github.com/repos/Ledger-Software/Ledger/branches{/branch}","tags_url":"https://api.github.com/repos/Ledger-Software/Ledger/tags","blobs_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ledger-Software/Ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/Ledger-Software/Ledger/languages","stargazers_url":"https://api.github.com/repos/Ledger-Software/Ledger/stargazers","contributors_url":"https://api.github.com/repos/Ledger-Software/Ledger/contributors","subscribers_url":"https://api.github.com/repos/Ledger-Software/Ledger/subscribers","subscription_url":"https://api.github.com/repos/Ledger-Software/Ledger/subscription","commits_url":"https://api.github.com/repos/Ledger-Software/Ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ledger-Software/Ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ledger-Software/Ledger/contents/{+path}","compare_url":"https://api.github.com/repos/Ledger-Software/Ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ledger-Software/Ledger/merges","archive_url":"https://api.github.com/repos/Ledger-Software/Ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ledger-Software/Ledger/downloads","issues_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues{/number}","pulls_url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/Ledger-Software/Ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/Ledger-Software/Ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ledger-Software/Ledger/labels{/name}","releases_url":"https://api.github.com/repos/Ledger-Software/Ledger/releases{/id}","deployments_url":"https://api.github.com/repos/Ledger-Software/Ledger/deployments","created_at":"2016-08-19T19:57:31Z","updated_at":"2016-09-27T00:16:13Z","pushed_at":"2016-10-09T02:24:14Z","git_url":"git://github.com/Ledger-Software/Ledger.git","ssh_url":"git@github.com:Ledger-Software/Ledger.git","clone_url":"https://github.com/Ledger-Software/Ledger.git","svn_url":"https://github.com/Ledger-Software/Ledger","homepage":null,"size":224,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"Ledger-Software:f_refactoring","ref":"f_refactoring","sha":"d80d17cd0748a156fed15dddc5cee250983fde54","user":{"login":"Ledger-Software","id":21131744,"avatar_url":"https://avatars.githubusercontent.com/u/21131744?v=3","gravatar_id":"","url":"https://api.github.com/users/Ledger-Software","html_url":"https://github.com/Ledger-Software","followers_url":"https://api.github.com/users/Ledger-Software/followers","following_url":"https://api.github.com/users/Ledger-Software/following{/other_user}","gists_url":"https://api.github.com/users/Ledger-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/Ledger-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ledger-Software/subscriptions","organizations_url":"https://api.github.com/users/Ledger-Software/orgs","repos_url":"https://api.github.com/users/Ledger-Software/repos","events_url":"https://api.github.com/users/Ledger-Software/events{/privacy}","received_events_url":"https://api.github.com/users/Ledger-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":66108741,"name":"Ledger","full_name":"Ledger-Software/Ledger","owner":{"login":"Ledger-Software","id":21131744,"avatar_url":"https://avatars.githubusercontent.com/u/21131744?v=3","gravatar_id":"","url":"https://api.github.com/users/Ledger-Software","html_url":"https://github.com/Ledger-Software","followers_url":"https://api.github.com/users/Ledger-Software/followers","following_url":"https://api.github.com/users/Ledger-Software/following{/other_user}","gists_url":"https://api.github.com/users/Ledger-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/Ledger-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ledger-Software/subscriptions","organizations_url":"https://api.github.com/users/Ledger-Software/orgs","repos_url":"https://api.github.com/users/Ledger-Software/repos","events_url":"https://api.github.com/users/Ledger-Software/events{/privacy}","received_events_url":"https://api.github.com/users/Ledger-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ledger-Software/Ledger","description":null,"fork":false,"url":"https://api.github.com/repos/Ledger-Software/Ledger","forks_url":"https://api.github.com/repos/Ledger-Software/Ledger/forks","keys_url":"https://api.github.com/repos/Ledger-Software/Ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ledger-Software/Ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ledger-Software/Ledger/teams","hooks_url":"https://api.github.com/repos/Ledger-Software/Ledger/hooks","issue_events_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues/events{/number}","events_url":"https://api.github.com/repos/Ledger-Software/Ledger/events","assignees_url":"https://api.github.com/repos/Ledger-Software/Ledger/assignees{/user}","branches_url":"https://api.github.com/repos/Ledger-Software/Ledger/branches{/branch}","tags_url":"https://api.github.com/repos/Ledger-Software/Ledger/tags","blobs_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ledger-Software/Ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/Ledger-Software/Ledger/languages","stargazers_url":"https://api.github.com/repos/Ledger-Software/Ledger/stargazers","contributors_url":"https://api.github.com/repos/Ledger-Software/Ledger/contributors","subscribers_url":"https://api.github.com/repos/Ledger-Software/Ledger/subscribers","subscription_url":"https://api.github.com/repos/Ledger-Software/Ledger/subscription","commits_url":"https://api.github.com/repos/Ledger-Software/Ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ledger-Software/Ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ledger-Software/Ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ledger-Software/Ledger/contents/{+path}","compare_url":"https://api.github.com/repos/Ledger-Software/Ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ledger-Software/Ledger/merges","archive_url":"https://api.github.com/repos/Ledger-Software/Ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ledger-Software/Ledger/downloads","issues_url":"https://api.github.com/repos/Ledger-Software/Ledger/issues{/number}","pulls_url":"https://api.github.com/repos/Ledger-Software/Ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/Ledger-Software/Ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/Ledger-Software/Ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ledger-Software/Ledger/labels{/name}","releases_url":"https://api.github.com/repos/Ledger-Software/Ledger/releases{/id}","deployments_url":"https://api.github.com/repos/Ledger-Software/Ledger/deployments","created_at":"2016-08-19T19:57:31Z","updated_at":"2016-09-27T00:16:13Z","pushed_at":"2016-10-09T02:24:14Z","git_url":"git://github.com/Ledger-Software/Ledger.git","ssh_url":"git@github.com:Ledger-Software/Ledger.git","clone_url":"https://github.com/Ledger-Software/Ledger.git","svn_url":"https://github.com/Ledger-Software/Ledger","homepage":null,"size":224,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14"},"html":{"href":"https://github.com/Ledger-Software/Ledger/pull/14"},"issue":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/issues/14"},"comments":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/Ledger-Software/Ledger/statuses/1ac1a826b6b5d74314ea710f3dc724845a8c209c"}}}}
{"actor":{"display_login":"cjm721"}}