{"action":"created","comment":{"url":"https://api.github.com/repos/uber/vertica-python/pulls/comments/29640552","id":29640552,"diff_hunk":"@@ -83,7 +82,9 @@ def fetchone(self):\n             self._message = self.connection.read_message()\n             return row\n         else:\n-            self.connection.process_message(self._message)\n+            while not isinstance(self._message, messages.ReadyForQuery):","path":"vertica_python/vertica/cursor.py","position":15,"original_position":15,"commit_id":"11e1a94cd4a75ac02d74d81f94dc4127917f85e9","original_commit_id":"11e1a94cd4a75ac02d74d81f94dc4127917f85e9","user":{"login":"jberka","id":921960,"avatar_url":"https://avatars.githubusercontent.com/u/921960?v=3","gravatar_id":"","url":"https://api.github.com/users/jberka","html_url":"https://github.com/jberka","followers_url":"https://api.github.com/users/jberka/followers","following_url":"https://api.github.com/users/jberka/following{/other_user}","gists_url":"https://api.github.com/users/jberka/gists{/gist_id}","starred_url":"https://api.github.com/users/jberka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jberka/subscriptions","organizations_url":"https://api.github.com/users/jberka/orgs","repos_url":"https://api.github.com/users/jberka/repos","events_url":"https://api.github.com/users/jberka/events{/privacy}","received_events_url":"https://api.github.com/users/jberka/received_events","type":"User","site_admin":false},"body":"If a ReadyForQuery is received, we should clear out the existing execution and capture the transaction status.","created_at":"2015-05-05T02:16:55Z","updated_at":"2015-05-05T02:16:55Z","html_url":"https://github.com/uber/vertica-python/pull/59#discussion_r29640552","pull_request_url":"https://api.github.com/repos/uber/vertica-python/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/uber/vertica-python/pulls/comments/29640552"},"html":{"href":"https://github.com/uber/vertica-python/pull/59#discussion_r29640552"},"pull_request":{"href":"https://api.github.com/repos/uber/vertica-python/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/uber/vertica-python/pulls/59","id":34691725,"html_url":"https://github.com/uber/vertica-python/pull/59","diff_url":"https://github.com/uber/vertica-python/pull/59.diff","patch_url":"https://github.com/uber/vertica-python/pull/59.patch","issue_url":"https://api.github.com/repos/uber/vertica-python/issues/59","number":59,"state":"open","locked":false,"title":"removed reset_connection from cursor.execute and a bug fix","user":{"login":"vrbala","id":3088022,"avatar_url":"https://avatars.githubusercontent.com/u/3088022?v=3","gravatar_id":"","url":"https://api.github.com/users/vrbala","html_url":"https://github.com/vrbala","followers_url":"https://api.github.com/users/vrbala/followers","following_url":"https://api.github.com/users/vrbala/following{/other_user}","gists_url":"https://api.github.com/users/vrbala/gists{/gist_id}","starred_url":"https://api.github.com/users/vrbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrbala/subscriptions","organizations_url":"https://api.github.com/users/vrbala/orgs","repos_url":"https://api.github.com/users/vrbala/repos","events_url":"https://api.github.com/users/vrbala/events{/privacy}","received_events_url":"https://api.github.com/users/vrbala/received_events","type":"User","site_admin":false},"body":"- reset_connection in execute caused every call to behave as independent transaction\r\n- when results are streamed for SELECT calls, the messages are to be processed till vertica returns ReadyForQuery","created_at":"2015-05-05T02:05:02Z","updated_at":"2015-05-05T02:16:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9de30a8905f6364f2ecbdd47ca59aa49b921445a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uber/vertica-python/pulls/59/commits","review_comments_url":"https://api.github.com/repos/uber/vertica-python/pulls/59/comments","review_comment_url":"https://api.github.com/repos/uber/vertica-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uber/vertica-python/issues/59/comments","statuses_url":"https://api.github.com/repos/uber/vertica-python/statuses/11e1a94cd4a75ac02d74d81f94dc4127917f85e9","head":{"label":"vrbala:issue56","ref":"issue56","sha":"11e1a94cd4a75ac02d74d81f94dc4127917f85e9","user":{"login":"vrbala","id":3088022,"avatar_url":"https://avatars.githubusercontent.com/u/3088022?v=3","gravatar_id":"","url":"https://api.github.com/users/vrbala","html_url":"https://github.com/vrbala","followers_url":"https://api.github.com/users/vrbala/followers","following_url":"https://api.github.com/users/vrbala/following{/other_user}","gists_url":"https://api.github.com/users/vrbala/gists{/gist_id}","starred_url":"https://api.github.com/users/vrbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrbala/subscriptions","organizations_url":"https://api.github.com/users/vrbala/orgs","repos_url":"https://api.github.com/users/vrbala/repos","events_url":"https://api.github.com/users/vrbala/events{/privacy}","received_events_url":"https://api.github.com/users/vrbala/received_events","type":"User","site_admin":false},"repo":{"id":34739436,"name":"vertica-python","full_name":"vrbala/vertica-python","owner":{"login":"vrbala","id":3088022,"avatar_url":"https://avatars.githubusercontent.com/u/3088022?v=3","gravatar_id":"","url":"https://api.github.com/users/vrbala","html_url":"https://github.com/vrbala","followers_url":"https://api.github.com/users/vrbala/followers","following_url":"https://api.github.com/users/vrbala/following{/other_user}","gists_url":"https://api.github.com/users/vrbala/gists{/gist_id}","starred_url":"https://api.github.com/users/vrbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrbala/subscriptions","organizations_url":"https://api.github.com/users/vrbala/orgs","repos_url":"https://api.github.com/users/vrbala/repos","events_url":"https://api.github.com/users/vrbala/events{/privacy}","received_events_url":"https://api.github.com/users/vrbala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vrbala/vertica-python","description":"vertica-python is a native Python adapter for the Vertica (http://www.vertica.com) database.","fork":true,"url":"https://api.github.com/repos/vrbala/vertica-python","forks_url":"https://api.github.com/repos/vrbala/vertica-python/forks","keys_url":"https://api.github.com/repos/vrbala/vertica-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vrbala/vertica-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vrbala/vertica-python/teams","hooks_url":"https://api.github.com/repos/vrbala/vertica-python/hooks","issue_events_url":"https://api.github.com/repos/vrbala/vertica-python/issues/events{/number}","events_url":"https://api.github.com/repos/vrbala/vertica-python/events","assignees_url":"https://api.github.com/repos/vrbala/vertica-python/assignees{/user}","branches_url":"https://api.github.com/repos/vrbala/vertica-python/branches{/branch}","tags_url":"https://api.github.com/repos/vrbala/vertica-python/tags","blobs_url":"https://api.github.com/repos/vrbala/vertica-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vrbala/vertica-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vrbala/vertica-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/vrbala/vertica-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vrbala/vertica-python/statuses/{sha}","languages_url":"https://api.github.com/repos/vrbala/vertica-python/languages","stargazers_url":"https://api.github.com/repos/vrbala/vertica-python/stargazers","contributors_url":"https://api.github.com/repos/vrbala/vertica-python/contributors","subscribers_url":"https://api.github.com/repos/vrbala/vertica-python/subscribers","subscription_url":"https://api.github.com/repos/vrbala/vertica-python/subscription","commits_url":"https://api.github.com/repos/vrbala/vertica-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/vrbala/vertica-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/vrbala/vertica-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/vrbala/vertica-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/vrbala/vertica-python/contents/{+path}","compare_url":"https://api.github.com/repos/vrbala/vertica-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vrbala/vertica-python/merges","archive_url":"https://api.github.com/repos/vrbala/vertica-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vrbala/vertica-python/downloads","issues_url":"https://api.github.com/repos/vrbala/vertica-python/issues{/number}","pulls_url":"https://api.github.com/repos/vrbala/vertica-python/pulls{/number}","milestones_url":"https://api.github.com/repos/vrbala/vertica-python/milestones{/number}","notifications_url":"https://api.github.com/repos/vrbala/vertica-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vrbala/vertica-python/labels{/name}","releases_url":"https://api.github.com/repos/vrbala/vertica-python/releases{/id}","created_at":"2015-04-28T15:37:42Z","updated_at":"2015-05-05T01:32:01Z","pushed_at":"2015-05-05T02:04:21Z","git_url":"git://github.com/vrbala/vertica-python.git","ssh_url":"git@github.com:vrbala/vertica-python.git","clone_url":"https://github.com/vrbala/vertica-python.git","svn_url":"https://github.com/vrbala/vertica-python","homepage":"","size":174,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"uber:master","ref":"master","sha":"6b980016bc461bc2a3f58e86614aa3a2479c147e","user":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=3","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"repo":{"id":11957229,"name":"vertica-python","full_name":"uber/vertica-python","owner":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=3","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber/vertica-python","description":"vertica-python is a native Python adapter for the Vertica (http://www.vertica.com) database.","fork":false,"url":"https://api.github.com/repos/uber/vertica-python","forks_url":"https://api.github.com/repos/uber/vertica-python/forks","keys_url":"https://api.github.com/repos/uber/vertica-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber/vertica-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber/vertica-python/teams","hooks_url":"https://api.github.com/repos/uber/vertica-python/hooks","issue_events_url":"https://api.github.com/repos/uber/vertica-python/issues/events{/number}","events_url":"https://api.github.com/repos/uber/vertica-python/events","assignees_url":"https://api.github.com/repos/uber/vertica-python/assignees{/user}","branches_url":"https://api.github.com/repos/uber/vertica-python/branches{/branch}","tags_url":"https://api.github.com/repos/uber/vertica-python/tags","blobs_url":"https://api.github.com/repos/uber/vertica-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber/vertica-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber/vertica-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber/vertica-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber/vertica-python/statuses/{sha}","languages_url":"https://api.github.com/repos/uber/vertica-python/languages","stargazers_url":"https://api.github.com/repos/uber/vertica-python/stargazers","contributors_url":"https://api.github.com/repos/uber/vertica-python/contributors","subscribers_url":"https://api.github.com/repos/uber/vertica-python/subscribers","subscription_url":"https://api.github.com/repos/uber/vertica-python/subscription","commits_url":"https://api.github.com/repos/uber/vertica-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber/vertica-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber/vertica-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber/vertica-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/uber/vertica-python/contents/{+path}","compare_url":"https://api.github.com/repos/uber/vertica-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber/vertica-python/merges","archive_url":"https://api.github.com/repos/uber/vertica-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber/vertica-python/downloads","issues_url":"https://api.github.com/repos/uber/vertica-python/issues{/number}","pulls_url":"https://api.github.com/repos/uber/vertica-python/pulls{/number}","milestones_url":"https://api.github.com/repos/uber/vertica-python/milestones{/number}","notifications_url":"https://api.github.com/repos/uber/vertica-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber/vertica-python/labels{/name}","releases_url":"https://api.github.com/repos/uber/vertica-python/releases{/id}","created_at":"2013-08-07T18:25:15Z","updated_at":"2015-05-04T19:02:35Z","pushed_at":"2015-05-05T02:05:03Z","git_url":"git://github.com/uber/vertica-python.git","ssh_url":"git@github.com:uber/vertica-python.git","clone_url":"https://github.com/uber/vertica-python.git","svn_url":"https://github.com/uber/vertica-python","homepage":"","size":1038,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":8,"forks":26,"open_issues":8,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uber/vertica-python/pulls/59"},"html":{"href":"https://github.com/uber/vertica-python/pull/59"},"issue":{"href":"https://api.github.com/repos/uber/vertica-python/issues/59"},"comments":{"href":"https://api.github.com/repos/uber/vertica-python/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/uber/vertica-python/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/uber/vertica-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uber/vertica-python/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/uber/vertica-python/statuses/11e1a94cd4a75ac02d74d81f94dc4127917f85e9"}}}}