-
Notifications
You must be signed in to change notification settings - Fork 24
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
[Q] An error occurs when the record count of read_sql
is 0
#43
Comments
read_sql
is 0
read_sql
is 0read_sql
is 0
Hmm, according to pep-0249, it looks like raising exception on "did not produce any result set" is in specification. However, as a user, I feel that raising exception on empty result set is troublesome than beneficial.... I guess that the point is that the interpretation of "any result set"; if empty result is some result set or not 🤔 |
I briefly checked other DBAPI 2 implementations, and confirmed that returning empty list is common behavior at least.
I'll try modifying the code to change the behavior later. Thanks letting us know anyways! |
Thank you very much!!! |
…set of query instead of raising exception (#43)
I've released 0.12.1.dev0 to PyPI with including the fix. Please give it a try if it is working as you expected. |
Thank you for your quick and great work!!! |
I executed the following Python script.
Is this in the specifications?
In the case of
mysql-connector-python
, the result is as follows.The text was updated successfully, but these errors were encountered: