Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
cursor.fetchall()
File "cursor.pyx", line 228, in oursql.Cursor.fetchall (oursqlx/oursql.c:16568)
File "statement.pyx", line 550, in oursql._Statement.fetchall (oursqlx/oursql.c:11377)
File "util.pyx", line 47, in oursql._DictWhateverMixin.fetchone (oursqlx/oursql.c:2627)
File "statement.pyx", line 422, in oursql._Statement.fetchone (oursqlx/oursql.c:10076)
File "statement.pyx", line 234, in oursql._Statement._bind_buffer (oursqlx/oursql.c:8024)
File "statement.pyx", line 126, in oursql._Statement._raise_error (oursqlx/oursql.c:6997)
InterfaceError: (2036, 'Using unsupported buffer type: 3 (parameter: 3)', None)
the database is not empty - not that it should make any difference.
I am having the exact same issue on windows:
>>> import oursql connect( user="root" ,
passwd= "password" , port=3306, host="127. 0.0.1") execute( "SELECT * FROM `ip_addr`")
>>> conn = oursql.
db="test",
>>> cursor = conn.cursor()
>>> cursor.
>>> cursor.fetchall()
Traceback (most recent call last): fetchall( ) Cursor. fetchall (oursqlx/ oursql. c:16568) _Statement. fetchall (oursqlx/ oursql. c:11377) _DictWhateverMi xin.fetchone (oursqlx/ oursql. c:2627) _Statement. fetchone (oursqlx/ oursql. c:10076) _Statement. _bind_buffer (oursqlx/ oursql. c:8024) _Statement. _raise_ error (oursqlx/ oursql. c:6997)
File "<pyshell#10>", line 1, in <module>
cursor.
File "cursor.pyx", line 228, in oursql.
File "statement.pyx", line 550, in oursql.
File "util.pyx", line 47, in oursql.
File "statement.pyx", line 422, in oursql.
File "statement.pyx", line 234, in oursql.
File "statement.pyx", line 126, in oursql.
InterfaceError: (2036, 'Using unsupported buffer type: 3 (parameter: 3)', None)
the database is not empty - not that it should make any difference.