{"action":"created","comment":{"url":"https://api.github.com/repos/misterarias/RETO2/pulls/comments/64177710","id":64177710,"diff_hunk":"@@ -40,14 +40,16 @@ function process(pool, req, res) {\n         \t\t\treturn;\n       \t\t\t}  \n   \n-      \t\t\tconnection.query(\"insert into reto1 values (?, now())\", params.value, function(err, result) {\n-        \t\t\tconnection.release();\n-  \n+      \t\t\tconnection.query(\"insert into reto1 values (?, current_timestamp(6))\", params.value, function(err, result) {\n         \t\t\tif (err) {\n           \t\t\t\tconsole.log(err);\n+        \t\t\t\tif (connection !== undefined) {\n+          \t\t\t\t\tconnection.release(); \n+        \t\t\t\t}\n           \t\t\t\treturn;\n         \t\t\t} \n-  \n+          \t\t\tconnection.release(); ","path":"server_node/files/dummy-web-server.js","position":16,"original_position":16,"commit_id":"6d361d06769a1c7cf7437837426c021672cbf123","original_commit_id":"6d361d06769a1c7cf7437837426c021672cbf123","user":{"login":"misterarias","id":11632115,"avatar_url":"https://avatars.githubusercontent.com/u/11632115?v=3","gravatar_id":"","url":"https://api.github.com/users/misterarias","html_url":"https://github.com/misterarias","followers_url":"https://api.github.com/users/misterarias/followers","following_url":"https://api.github.com/users/misterarias/following{/other_user}","gists_url":"https://api.github.com/users/misterarias/gists{/gist_id}","starred_url":"https://api.github.com/users/misterarias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterarias/subscriptions","organizations_url":"https://api.github.com/users/misterarias/orgs","repos_url":"https://api.github.com/users/misterarias/repos","events_url":"https://api.github.com/users/misterarias/events{/privacy}","received_events_url":"https://api.github.com/users/misterarias/received_events","type":"User","site_admin":false},"body":"Si ha habido un error en la query, la conexión se liberaría dos veces, esto no podría ser un error?","created_at":"2016-05-23T07:20:05Z","updated_at":"2016-05-23T07:20:05Z","html_url":"https://github.com/misterarias/RETO2/pull/12#discussion_r64177710","pull_request_url":"https://api.github.com/repos/misterarias/RETO2/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/misterarias/RETO2/pulls/comments/64177710"},"html":{"href":"https://github.com/misterarias/RETO2/pull/12#discussion_r64177710"},"pull_request":{"href":"https://api.github.com/repos/misterarias/RETO2/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/misterarias/RETO2/pulls/12","id":70985873,"html_url":"https://github.com/misterarias/RETO2/pull/12","diff_url":"https://github.com/misterarias/RETO2/pull/12.diff","patch_url":"https://github.com/misterarias/RETO2/pull/12.patch","issue_url":"https://api.github.com/repos/misterarias/RETO2/issues/12","number":12,"state":"open","locked":false,"title":"stats data generator","user":{"login":"ICBluetab","id":18725520,"avatar_url":"https://avatars.githubusercontent.com/u/18725520?v=3","gravatar_id":"","url":"https://api.github.com/users/ICBluetab","html_url":"https://github.com/ICBluetab","followers_url":"https://api.github.com/users/ICBluetab/followers","following_url":"https://api.github.com/users/ICBluetab/following{/other_user}","gists_url":"https://api.github.com/users/ICBluetab/gists{/gist_id}","starred_url":"https://api.github.com/users/ICBluetab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ICBluetab/subscriptions","organizations_url":"https://api.github.com/users/ICBluetab/orgs","repos_url":"https://api.github.com/users/ICBluetab/repos","events_url":"https://api.github.com/users/ICBluetab/events{/privacy}","received_events_url":"https://api.github.com/users/ICBluetab/received_events","type":"User","site_admin":false},"body":"Metric data generator for python and node server.","created_at":"2016-05-22T19:31:03Z","updated_at":"2016-05-23T07:20:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c19db1bfe42bfa54a9fed3131ff8274d4372af14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/misterarias/RETO2/pulls/12/commits","review_comments_url":"https://api.github.com/repos/misterarias/RETO2/pulls/12/comments","review_comment_url":"https://api.github.com/repos/misterarias/RETO2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/misterarias/RETO2/issues/12/comments","statuses_url":"https://api.github.com/repos/misterarias/RETO2/statuses/6d361d06769a1c7cf7437837426c021672cbf123","head":{"label":"ICBluetab:master","ref":"master","sha":"6d361d06769a1c7cf7437837426c021672cbf123","user":{"login":"ICBluetab","id":18725520,"avatar_url":"https://avatars.githubusercontent.com/u/18725520?v=3","gravatar_id":"","url":"https://api.github.com/users/ICBluetab","html_url":"https://github.com/ICBluetab","followers_url":"https://api.github.com/users/ICBluetab/followers","following_url":"https://api.github.com/users/ICBluetab/following{/other_user}","gists_url":"https://api.github.com/users/ICBluetab/gists{/gist_id}","starred_url":"https://api.github.com/users/ICBluetab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ICBluetab/subscriptions","organizations_url":"https://api.github.com/users/ICBluetab/orgs","repos_url":"https://api.github.com/users/ICBluetab/repos","events_url":"https://api.github.com/users/ICBluetab/events{/privacy}","received_events_url":"https://api.github.com/users/ICBluetab/received_events","type":"User","site_admin":false},"repo":{"id":58670045,"name":"RETO2","full_name":"ICBluetab/RETO2","owner":{"login":"ICBluetab","id":18725520,"avatar_url":"https://avatars.githubusercontent.com/u/18725520?v=3","gravatar_id":"","url":"https://api.github.com/users/ICBluetab","html_url":"https://github.com/ICBluetab","followers_url":"https://api.github.com/users/ICBluetab/followers","following_url":"https://api.github.com/users/ICBluetab/following{/other_user}","gists_url":"https://api.github.com/users/ICBluetab/gists{/gist_id}","starred_url":"https://api.github.com/users/ICBluetab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ICBluetab/subscriptions","organizations_url":"https://api.github.com/users/ICBluetab/orgs","repos_url":"https://api.github.com/users/ICBluetab/repos","events_url":"https://api.github.com/users/ICBluetab/events{/privacy}","received_events_url":"https://api.github.com/users/ICBluetab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ICBluetab/RETO2","description":"Reto 2 de big data","fork":true,"url":"https://api.github.com/repos/ICBluetab/RETO2","forks_url":"https://api.github.com/repos/ICBluetab/RETO2/forks","keys_url":"https://api.github.com/repos/ICBluetab/RETO2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ICBluetab/RETO2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ICBluetab/RETO2/teams","hooks_url":"https://api.github.com/repos/ICBluetab/RETO2/hooks","issue_events_url":"https://api.github.com/repos/ICBluetab/RETO2/issues/events{/number}","events_url":"https://api.github.com/repos/ICBluetab/RETO2/events","assignees_url":"https://api.github.com/repos/ICBluetab/RETO2/assignees{/user}","branches_url":"https://api.github.com/repos/ICBluetab/RETO2/branches{/branch}","tags_url":"https://api.github.com/repos/ICBluetab/RETO2/tags","blobs_url":"https://api.github.com/repos/ICBluetab/RETO2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ICBluetab/RETO2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ICBluetab/RETO2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ICBluetab/RETO2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ICBluetab/RETO2/statuses/{sha}","languages_url":"https://api.github.com/repos/ICBluetab/RETO2/languages","stargazers_url":"https://api.github.com/repos/ICBluetab/RETO2/stargazers","contributors_url":"https://api.github.com/repos/ICBluetab/RETO2/contributors","subscribers_url":"https://api.github.com/repos/ICBluetab/RETO2/subscribers","subscription_url":"https://api.github.com/repos/ICBluetab/RETO2/subscription","commits_url":"https://api.github.com/repos/ICBluetab/RETO2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ICBluetab/RETO2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ICBluetab/RETO2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ICBluetab/RETO2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ICBluetab/RETO2/contents/{+path}","compare_url":"https://api.github.com/repos/ICBluetab/RETO2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ICBluetab/RETO2/merges","archive_url":"https://api.github.com/repos/ICBluetab/RETO2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ICBluetab/RETO2/downloads","issues_url":"https://api.github.com/repos/ICBluetab/RETO2/issues{/number}","pulls_url":"https://api.github.com/repos/ICBluetab/RETO2/pulls{/number}","milestones_url":"https://api.github.com/repos/ICBluetab/RETO2/milestones{/number}","notifications_url":"https://api.github.com/repos/ICBluetab/RETO2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ICBluetab/RETO2/labels{/name}","releases_url":"https://api.github.com/repos/ICBluetab/RETO2/releases{/id}","deployments_url":"https://api.github.com/repos/ICBluetab/RETO2/deployments","created_at":"2016-05-12T19:17:26Z","updated_at":"2016-05-22T14:52:17Z","pushed_at":"2016-05-22T19:29:06Z","git_url":"git://github.com/ICBluetab/RETO2.git","ssh_url":"git@github.com:ICBluetab/RETO2.git","clone_url":"https://github.com/ICBluetab/RETO2.git","svn_url":"https://github.com/ICBluetab/RETO2","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"misterarias:master","ref":"master","sha":"d0a66c2c814af1bffa3aaeef66f2b6a6a040adfc","user":{"login":"misterarias","id":11632115,"avatar_url":"https://avatars.githubusercontent.com/u/11632115?v=3","gravatar_id":"","url":"https://api.github.com/users/misterarias","html_url":"https://github.com/misterarias","followers_url":"https://api.github.com/users/misterarias/followers","following_url":"https://api.github.com/users/misterarias/following{/other_user}","gists_url":"https://api.github.com/users/misterarias/gists{/gist_id}","starred_url":"https://api.github.com/users/misterarias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterarias/subscriptions","organizations_url":"https://api.github.com/users/misterarias/orgs","repos_url":"https://api.github.com/users/misterarias/repos","events_url":"https://api.github.com/users/misterarias/events{/privacy}","received_events_url":"https://api.github.com/users/misterarias/received_events","type":"User","site_admin":false},"repo":{"id":58568556,"name":"RETO2","full_name":"misterarias/RETO2","owner":{"login":"misterarias","id":11632115,"avatar_url":"https://avatars.githubusercontent.com/u/11632115?v=3","gravatar_id":"","url":"https://api.github.com/users/misterarias","html_url":"https://github.com/misterarias","followers_url":"https://api.github.com/users/misterarias/followers","following_url":"https://api.github.com/users/misterarias/following{/other_user}","gists_url":"https://api.github.com/users/misterarias/gists{/gist_id}","starred_url":"https://api.github.com/users/misterarias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterarias/subscriptions","organizations_url":"https://api.github.com/users/misterarias/orgs","repos_url":"https://api.github.com/users/misterarias/repos","events_url":"https://api.github.com/users/misterarias/events{/privacy}","received_events_url":"https://api.github.com/users/misterarias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/misterarias/RETO2","description":"Reto 2 de big data","fork":false,"url":"https://api.github.com/repos/misterarias/RETO2","forks_url":"https://api.github.com/repos/misterarias/RETO2/forks","keys_url":"https://api.github.com/repos/misterarias/RETO2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/misterarias/RETO2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/misterarias/RETO2/teams","hooks_url":"https://api.github.com/repos/misterarias/RETO2/hooks","issue_events_url":"https://api.github.com/repos/misterarias/RETO2/issues/events{/number}","events_url":"https://api.github.com/repos/misterarias/RETO2/events","assignees_url":"https://api.github.com/repos/misterarias/RETO2/assignees{/user}","branches_url":"https://api.github.com/repos/misterarias/RETO2/branches{/branch}","tags_url":"https://api.github.com/repos/misterarias/RETO2/tags","blobs_url":"https://api.github.com/repos/misterarias/RETO2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/misterarias/RETO2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/misterarias/RETO2/git/refs{/sha}","trees_url":"https://api.github.com/repos/misterarias/RETO2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/misterarias/RETO2/statuses/{sha}","languages_url":"https://api.github.com/repos/misterarias/RETO2/languages","stargazers_url":"https://api.github.com/repos/misterarias/RETO2/stargazers","contributors_url":"https://api.github.com/repos/misterarias/RETO2/contributors","subscribers_url":"https://api.github.com/repos/misterarias/RETO2/subscribers","subscription_url":"https://api.github.com/repos/misterarias/RETO2/subscription","commits_url":"https://api.github.com/repos/misterarias/RETO2/commits{/sha}","git_commits_url":"https://api.github.com/repos/misterarias/RETO2/git/commits{/sha}","comments_url":"https://api.github.com/repos/misterarias/RETO2/comments{/number}","issue_comment_url":"https://api.github.com/repos/misterarias/RETO2/issues/comments{/number}","contents_url":"https://api.github.com/repos/misterarias/RETO2/contents/{+path}","compare_url":"https://api.github.com/repos/misterarias/RETO2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/misterarias/RETO2/merges","archive_url":"https://api.github.com/repos/misterarias/RETO2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/misterarias/RETO2/downloads","issues_url":"https://api.github.com/repos/misterarias/RETO2/issues{/number}","pulls_url":"https://api.github.com/repos/misterarias/RETO2/pulls{/number}","milestones_url":"https://api.github.com/repos/misterarias/RETO2/milestones{/number}","notifications_url":"https://api.github.com/repos/misterarias/RETO2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/misterarias/RETO2/labels{/name}","releases_url":"https://api.github.com/repos/misterarias/RETO2/releases{/id}","deployments_url":"https://api.github.com/repos/misterarias/RETO2/deployments","created_at":"2016-05-11T18:02:32Z","updated_at":"2016-05-13T12:25:47Z","pushed_at":"2016-05-23T07:12:57Z","git_url":"git://github.com/misterarias/RETO2.git","ssh_url":"git@github.com:misterarias/RETO2.git","clone_url":"https://github.com/misterarias/RETO2.git","svn_url":"https://github.com/misterarias/RETO2","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/misterarias/RETO2/pulls/12"},"html":{"href":"https://github.com/misterarias/RETO2/pull/12"},"issue":{"href":"https://api.github.com/repos/misterarias/RETO2/issues/12"},"comments":{"href":"https://api.github.com/repos/misterarias/RETO2/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/misterarias/RETO2/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/misterarias/RETO2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/misterarias/RETO2/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/misterarias/RETO2/statuses/6d361d06769a1c7cf7437837426c021672cbf123"}}}}
{"actor":{"display_login":"misterarias"}}