{"action":"closed","issue":{"url":"https://api.github.com/repos/uber/vertica-python/issues/55","labels_url":"https://api.github.com/repos/uber/vertica-python/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/uber/vertica-python/issues/55/comments","events_url":"https://api.github.com/repos/uber/vertica-python/issues/55/events","html_url":"https://github.com/uber/vertica-python/issues/55","id":72003072,"number":55,"title":"vertica-python 0.4.1 errors on commit","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},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-04-29T22:06:45Z","updated_at":"2015-05-01T18:18:05Z","closed_at":"2015-05-01T18:18:05Z","body":"*vertica-python version: 0.4.1*\r\n*vertica version: 7.0.1-4*\r\n\r\nPlease look at the script below:\r\n\r\n```python\r\nimport sys\r\nsys.path.insert(0, '/path/to/vertica-python/vertica-python-master')\r\nfrom vertica_python import connect\r\n\r\nconnection = connect({\r\n        'host': 'host.vertica.com',\r\n        'port': 5433,\r\n        'user': 'user',\r\n        'password': 'password',\r\n        'database': 'vertica',\r\n        'read_timeout': 86400\r\n        }\r\n    )\r\n\r\nc = connection.cursor()\r\nc.execute(\"COMMIT;\")\r\nresult = c.fetchall()\r\nconnection.close()\r\nprint result\r\n```\r\nThis is a contrived example but when I run this script, \r\n\r\n```\r\n% python2.7 vertica-test.py\r\nMessage type: <class 'vertica_python.vertica.messages.backend_messages.notice_response.NoticeResponse'>\r\n<vertica_python.vertica.messages.backend_messages.notice_response.NoticeResponse object at 0x7ffff0a06510>\r\nTraceback (most recent call last):\r\n  File \"vertica-test.py\", line 18, in <module>\r\n    c.execute(\"COMMIT;\")\r\n  File \"/path/to/vertica-python/vertica-python-master/vertica_python/vertica/cursor.py\", line 73, in execute\r\n    raise errors.QueryError(\"Unexpected message type\", self.last_execution)\r\n  File \"/path/to/vertica-python/vertica-python-master/vertica_python/errors.py\", line 77, in __init__\r\n    error_response.error_message(), repr(self.one_line_sql()))\r\n```"}}