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

MySQLdb.cursors.Cursor._fetchone() does not exist #650

Closed
macneiln opened this issue Jan 4, 2021 · 0 comments · Fixed by #651
Closed

MySQLdb.cursors.Cursor._fetchone() does not exist #650

macneiln opened this issue Jan 4, 2021 · 0 comments · Fixed by #651

Comments

@macneiln
Copy link
Contributor

macneiln commented Jan 4, 2021

When using the db(query).iterselect(), a call is made in pydal/objects.py to "self.cursor._fetchone()" however "._fetchone()" does not exist in MySQLdb.cursors.Cursor.

It should be MySQLdb.cursors.Cursor.fetchone() (http://mysql-python.sourceforge.net/MySQLdb-1.2.2/public/MySQLdb.cursors.CursorStoreResultMixIn-class.html#fetchone).

This results in an error when called currently:

  • <class 'AttributeError'> 'Cursor' object has no attribute '_fetchone'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant