-
Notifications
You must be signed in to change notification settings - Fork 20
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
cursor.fetchall fails #32
Comments
I cannot replicate your issue, this works fine:
Please supply python version, pymonetdb version, exception, and code example. |
|
I still can't replicate this problem. What MonetDB version are you using? |
Hi Gijs,
I hit the same issue a few months ago. And to get through I had to replace
L536:
end = min(self.rowcount, self.rownumber + self.arraysize)
with
end = min(self.rowcount, self.rownumber + int(0 if self.arraysize is None
else self.arraysize))
But I guess there might be other lines where a protection against
incompatible types has to be set too.
Anton
…On Wed, Jan 24, 2018 at 6:58 AM, Gijs Molenaar ***@***.***> wrote:
I still can't replicate this problem. What MonetDB version are you using?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJmNzdsts7etMqQBwiX8YFtuz3q31cuuks5tN0UQgaJpZM4RqE-4>
.
|
MonetDB5-server-11.27.11-20171204.fc26.x86_64 |
@ankravch what do you mean with incompatible types? |
L43 in cursors.py:
self.arraysize = connection.replysize
L63 in connections.py
self.replysize = None
I would try to set a default replysize to 0
self.replysize = 0
So that when you do "self.rownumber + self.arraysize" you always add
"apples to apples".
Anton
…On Wed, Jan 24, 2018 at 8:38 AM, Gijs Molenaar ***@***.***> wrote:
@ankravch <https://github.com/ankravch> what do you mean with
incompatible types? Cursor.arraysize should never be None. If it is None
then it is manually set to None (which is invalid) or it is a bug, but I
don't understand where.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJmNzV37hM82lXAyPQXvQzcn3Y0_onGoks5tN1x-gaJpZM4RqE-4>
.
|
hi @ankravch . Sorry for the delay in replying, I forgot about this issue. Its true that https://github.com/gijzelaerr/pymonetdb/blob/master/pymonetdb/sql/connections.py#L63 Effectively that means that |
default is 0 now. |
cursor.fetchall fails if the result is larger than the cursor.arraysize. The code throws an exception while I expect all result rows.
The text was updated successfully, but these errors were encountered: