{"action":"created","comment":{"url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/comments/43632897","id":43632897,"diff_hunk":"@@ -301,6 +307,11 @@ def _fetch_redshift_column_attributes(self, column):\n         return text\n \n \n+class RedshiftExecutionCntext(PGExecutionContext_psycopg2):\n+    def should_autocommit_text(self, statement):","path":"sqlalchemy_redshift/dialect.py","position":27,"original_position":27,"commit_id":"64dc8fb550f5f6bc5f7e954ea6f3d431fbf6739b","original_commit_id":"64dc8fb550f5f6bc5f7e954ea6f3d431fbf6739b","user":{"login":"berdario","id":752835,"avatar_url":"https://avatars.githubusercontent.com/u/752835?v=3","gravatar_id":"","url":"https://api.github.com/users/berdario","html_url":"https://github.com/berdario","followers_url":"https://api.github.com/users/berdario/followers","following_url":"https://api.github.com/users/berdario/following{/other_user}","gists_url":"https://api.github.com/users/berdario/gists{/gist_id}","starred_url":"https://api.github.com/users/berdario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berdario/subscriptions","organizations_url":"https://api.github.com/users/berdario/orgs","repos_url":"https://api.github.com/users/berdario/repos","events_url":"https://api.github.com/users/berdario/events{/privacy}","received_events_url":"https://api.github.com/users/berdario/received_events","type":"User","site_admin":false},"body":"Yeah, that's better... I don't think that the psycopg2 dialect might need to add keywords very often, but it's the cleaner way\r\n\r\nI'll see to do that later (before tomorrow? I've been away in the weekend, and now I'm a bit busy again)","created_at":"2015-11-02T14:29:56Z","updated_at":"2015-11-02T14:29:56Z","html_url":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/63#discussion_r43632897","pull_request_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/comments/43632897"},"html":{"href":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/63#discussion_r43632897"},"pull_request":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63","id":49274155,"html_url":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/63","diff_url":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/63.diff","patch_url":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/63.patch","issue_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/issues/63","number":63,"state":"open","locked":false,"title":"Autocommit when executing a COPY command","user":{"login":"berdario","id":752835,"avatar_url":"https://avatars.githubusercontent.com/u/752835?v=3","gravatar_id":"","url":"https://api.github.com/users/berdario","html_url":"https://github.com/berdario","followers_url":"https://api.github.com/users/berdario/followers","following_url":"https://api.github.com/users/berdario/following{/other_user}","gists_url":"https://api.github.com/users/berdario/gists{/gist_id}","starred_url":"https://api.github.com/users/berdario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berdario/subscriptions","organizations_url":"https://api.github.com/users/berdario/orgs","repos_url":"https://api.github.com/users/berdario/repos","events_url":"https://api.github.com/users/berdario/events{/privacy}","received_events_url":"https://api.github.com/users/berdario/received_events","type":"User","site_admin":false},"body":"This would help with this issue, I think:\r\n\r\nhttp://stackoverflow.com/questions/28271049/redshift-copy-operation-doesnt-work-in-sqlalchemy#\r\n\r\nI'm still new with Redshift, and I haven't checked if there are any Redshift-specific commands aside from `COPY` (which is the only one that I've used as for now)","created_at":"2015-10-30T14:16:33Z","updated_at":"2015-11-02T14:29:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61164f6d68eb3c7eb0f5932d196873befd79f0a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63/commits","review_comments_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63/comments","review_comment_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/issues/63/comments","statuses_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/statuses/64dc8fb550f5f6bc5f7e954ea6f3d431fbf6739b","head":{"label":"berdario:copy_autocommit","ref":"copy_autocommit","sha":"64dc8fb550f5f6bc5f7e954ea6f3d431fbf6739b","user":{"login":"berdario","id":752835,"avatar_url":"https://avatars.githubusercontent.com/u/752835?v=3","gravatar_id":"","url":"https://api.github.com/users/berdario","html_url":"https://github.com/berdario","followers_url":"https://api.github.com/users/berdario/followers","following_url":"https://api.github.com/users/berdario/following{/other_user}","gists_url":"https://api.github.com/users/berdario/gists{/gist_id}","starred_url":"https://api.github.com/users/berdario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berdario/subscriptions","organizations_url":"https://api.github.com/users/berdario/orgs","repos_url":"https://api.github.com/users/berdario/repos","events_url":"https://api.github.com/users/berdario/events{/privacy}","received_events_url":"https://api.github.com/users/berdario/received_events","type":"User","site_admin":false},"repo":{"id":45248062,"name":"sqlalchemy-redshift","full_name":"berdario/sqlalchemy-redshift","owner":{"login":"berdario","id":752835,"avatar_url":"https://avatars.githubusercontent.com/u/752835?v=3","gravatar_id":"","url":"https://api.github.com/users/berdario","html_url":"https://github.com/berdario","followers_url":"https://api.github.com/users/berdario/followers","following_url":"https://api.github.com/users/berdario/following{/other_user}","gists_url":"https://api.github.com/users/berdario/gists{/gist_id}","starred_url":"https://api.github.com/users/berdario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berdario/subscriptions","organizations_url":"https://api.github.com/users/berdario/orgs","repos_url":"https://api.github.com/users/berdario/repos","events_url":"https://api.github.com/users/berdario/events{/privacy}","received_events_url":"https://api.github.com/users/berdario/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/berdario/sqlalchemy-redshift","description":"Amazon Redshift SQLAlchemy Dialect","fork":true,"url":"https://api.github.com/repos/berdario/sqlalchemy-redshift","forks_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/forks","keys_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/teams","hooks_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/hooks","issue_events_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/issues/events{/number}","events_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/events","assignees_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/assignees{/user}","branches_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/branches{/branch}","tags_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/tags","blobs_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/git/refs{/sha}","trees_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/statuses/{sha}","languages_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/languages","stargazers_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/stargazers","contributors_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/contributors","subscribers_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/subscribers","subscription_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/subscription","commits_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/commits{/sha}","git_commits_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/git/commits{/sha}","comments_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/comments{/number}","issue_comment_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/issues/comments{/number}","contents_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/contents/{+path}","compare_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/merges","archive_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/downloads","issues_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/issues{/number}","pulls_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/pulls{/number}","milestones_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/milestones{/number}","notifications_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/labels{/name}","releases_url":"https://api.github.com/repos/berdario/sqlalchemy-redshift/releases{/id}","created_at":"2015-10-30T11:50:23Z","updated_at":"2015-10-30T11:50:23Z","pushed_at":"2015-10-30T14:20:06Z","git_url":"git://github.com/berdario/sqlalchemy-redshift.git","ssh_url":"git@github.com:berdario/sqlalchemy-redshift.git","clone_url":"https://github.com/berdario/sqlalchemy-redshift.git","svn_url":"https://github.com/berdario/sqlalchemy-redshift","homepage":"https://sqlalchemy-redshift.readthedocs.org/en/latest/","size":987,"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":"sqlalchemy-redshift:master","ref":"master","sha":"a85c4c15d521e329e2eb1d41355f0cc150587c69","user":{"login":"sqlalchemy-redshift","id":13888600,"avatar_url":"https://avatars.githubusercontent.com/u/13888600?v=3","gravatar_id":"","url":"https://api.github.com/users/sqlalchemy-redshift","html_url":"https://github.com/sqlalchemy-redshift","followers_url":"https://api.github.com/users/sqlalchemy-redshift/followers","following_url":"https://api.github.com/users/sqlalchemy-redshift/following{/other_user}","gists_url":"https://api.github.com/users/sqlalchemy-redshift/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlalchemy-redshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlalchemy-redshift/subscriptions","organizations_url":"https://api.github.com/users/sqlalchemy-redshift/orgs","repos_url":"https://api.github.com/users/sqlalchemy-redshift/repos","events_url":"https://api.github.com/users/sqlalchemy-redshift/events{/privacy}","received_events_url":"https://api.github.com/users/sqlalchemy-redshift/received_events","type":"Organization","site_admin":false},"repo":{"id":35280897,"name":"sqlalchemy-redshift","full_name":"sqlalchemy-redshift/sqlalchemy-redshift","owner":{"login":"sqlalchemy-redshift","id":13888600,"avatar_url":"https://avatars.githubusercontent.com/u/13888600?v=3","gravatar_id":"","url":"https://api.github.com/users/sqlalchemy-redshift","html_url":"https://github.com/sqlalchemy-redshift","followers_url":"https://api.github.com/users/sqlalchemy-redshift/followers","following_url":"https://api.github.com/users/sqlalchemy-redshift/following{/other_user}","gists_url":"https://api.github.com/users/sqlalchemy-redshift/gists{/gist_id}","starred_url":"https://api.github.com/users/sqlalchemy-redshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sqlalchemy-redshift/subscriptions","organizations_url":"https://api.github.com/users/sqlalchemy-redshift/orgs","repos_url":"https://api.github.com/users/sqlalchemy-redshift/repos","events_url":"https://api.github.com/users/sqlalchemy-redshift/events{/privacy}","received_events_url":"https://api.github.com/users/sqlalchemy-redshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift","description":"Amazon Redshift SQLAlchemy Dialect","fork":false,"url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift","forks_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/forks","keys_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/teams","hooks_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/hooks","issue_events_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/issues/events{/number}","events_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/events","assignees_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/assignees{/user}","branches_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/branches{/branch}","tags_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/tags","blobs_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/git/refs{/sha}","trees_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/statuses/{sha}","languages_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/languages","stargazers_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/stargazers","contributors_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/contributors","subscribers_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/subscribers","subscription_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/subscription","commits_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/commits{/sha}","git_commits_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/git/commits{/sha}","comments_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/comments{/number}","issue_comment_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/issues/comments{/number}","contents_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/contents/{+path}","compare_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/merges","archive_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/downloads","issues_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/issues{/number}","pulls_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls{/number}","milestones_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/milestones{/number}","notifications_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/labels{/name}","releases_url":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/releases{/id}","created_at":"2015-05-08T13:29:24Z","updated_at":"2015-10-21T14:43:42Z","pushed_at":"2015-11-02T14:01:01Z","git_url":"git://github.com/sqlalchemy-redshift/sqlalchemy-redshift.git","ssh_url":"git@github.com:sqlalchemy-redshift/sqlalchemy-redshift.git","clone_url":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift.git","svn_url":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift","homepage":"https://sqlalchemy-redshift.readthedocs.org/en/latest/","size":987,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":11,"forks":6,"open_issues":11,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63"},"html":{"href":"https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/63"},"issue":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/issues/63"},"comments":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/sqlalchemy-redshift/sqlalchemy-redshift/statuses/64dc8fb550f5f6bc5f7e954ea6f3d431fbf6739b"}}}}