-
Notifications
You must be signed in to change notification settings - Fork 683
Insert NULL in a boolean column returns no rows #288
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
Comments
I dabbled quickly with the code and it seems that changing: to: while self.packet.read_bytes + 1 <= self.event_size:
self.__rows.append(self._fetch_one_row()) See the The tests are passing but I don't understand the code enough to do a PR before some approval (I'd love an explanation too - if it makes any sense of course 😬). |
I'd say this is an off by one error. I have no idea why though :x. If you could throw a pr like:
Just removing the +1 and with your test case, that would be appreciated :) |
mickey
added a commit
to mickey/python-mysql-replication
that referenced
this issue
Apr 8, 2019
mickey
added a commit
to mickey/python-mysql-replication
that referenced
this issue
Apr 10, 2019
baloo
pushed a commit
that referenced
this issue
Apr 10, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Here's a test case that fails:
In this case,
event.rows
returns[]
whileevent.columns[0].name
successfully returnstest
.Of course if I have more than 1 row, it works as demonstrated in your test case here.
The text was updated successfully, but these errors were encountered: