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

fix(): avoid closing cursor session across multiple sql statements #92

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

zczhuohuo
Copy link
Contributor

Describe your changes

Assign self.handle.cursor() to self._cursor everytime will cause self._cursor's del() function to be called. And self._cursor.del() will call self.session.close(), which will invalid set command defined in pre-hook.

related to #89

Copy link
Contributor

@tovganesh tovganesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@tovganesh tovganesh merged commit eefca92 into cloudera:main Jan 16, 2023
@zczhuohuo zczhuohuo deleted the fix_cursor_session_close branch January 17, 2023 02:32
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

Successfully merging this pull request may close these issues.

2 participants