Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an AttributeError from vertica.base.DatabaseWrapper._set_autocommit method #11

Open
shahar4499 opened this issue Sep 13, 2017 · 3 comments

Comments

@shahar4499
Copy link

The DatabaseWrapper object in vertica.base has a _set_autocommit method.
This method is trying to call self.connection.query(), which does not exist.
I've tried to replace it with self.connection.cursor().execute() and it worked.
Should I send a pull request?

@tumb1er
Copy link
Contributor

tumb1er commented Sep 13, 2017

Is autocommit state preserved when you close a cursor?

@shahar4499
Copy link
Author

I'm not sure, how should I test that?

@tumb1er
Copy link
Contributor

tumb1er commented Sep 13, 2017

in REPL set autocommit on, close cursor, insert anything and read that anything from another connection without closing first one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants