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

Throw exception if fetchone fail in Python SDK #1159

Closed
tobegit3hub opened this issue Jan 29, 2022 · 0 comments · Fixed by #1215
Closed

Throw exception if fetchone fail in Python SDK #1159

tobegit3hub opened this issue Jan 29, 2022 · 0 comments · Fixed by #1215
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tobegit3hub
Copy link
Collaborator

Now if fetchone() in openmldb.dbapi fail, it return the string which is useless and we should throw exception for this error case.

    def fetchone(self):
        if self._resultSet is None: return "call fetchone"
@tobegit3hub tobegit3hub added the bug Something isn't working label Jan 29, 2022
@tobegit3hub tobegit3hub added this to the v0.5 milestone Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants