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

Improper error message #63

Closed
ghost opened this issue Jun 19, 2020 · 1 comment
Closed

Improper error message #63

ghost opened this issue Jun 19, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ghost
Copy link

ghost commented Jun 19, 2020

Describe the bug
Try to execute an empty string should not complain about multiple queries

To Reproduce

conn = monetdbe.connect(':memory:')
res = conn.execute("""""")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/ufs/mk/.virtualenvs/python-Kt-6h5O5/lib/python3.7/site-packages/monetdbe/connection.py", line 100, in execute
    cur = Cursor(con=self).execute(query, args)
  File "/ufs/mk/.virtualenvs/python-Kt-6h5O5/lib/python3.7/site-packages/monetdbe/cursor.py", line 142, in execute
    raise Warning("Multiple queries in one execute() call")
monetdbe.exceptions.Warning: Multiple queries in one execute() call

Expected behavior
Either considered as a no-op or a proper error message

Software versions

  • OS and version: OSX
    Python version: 3.7.7
  • MonetDBe-Python version: 0.7.1

Additional context
Add any other context about the problem here.

@gijzelaerr gijzelaerr self-assigned this Jun 29, 2020
@gijzelaerr gijzelaerr added the bug Something isn't working label Jun 29, 2020
@gijzelaerr gijzelaerr added this to the 0.8 milestone Jun 29, 2020
gijzelaerr added a commit that referenced this issue Jun 30, 2020
@gijzelaerr
Copy link
Collaborator

This issue has been resolved.

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

No branches or pull requests

1 participant