Yes there are no rows. It produces the same exact error, with or without
any rows at all. It is simply a test database that produces the problem
for me.

The code that produces the problem:
import oursql

host = '127.0.0.1'
port = 3303
user = 'test'
pw = 'test'
db = 'test'

db = oursql.connect(host=host, user=user, passwd=pw, db=db, port=port)

print "SQL Connection Established on %s:%s" % (host, port)

cursor = db.cursor()

cursor.execute("""SELECT * FROM `item_db`""");

rows = cursor.fetchall()

for row in rows:
            print row

-- 
some problem in win32
https://bugs.launchpad.net/bugs/598414
You received this bug notification because you are a member of Agesys
Team, which is subscribed to oursql.

Status in oursql python bindings for mysql: Incomplete

Bug description:
since 0.90 in windows, if i use execute() to search some data , when i fetch 
row i have get this exception :

Traceback (most recent call last):
  File "<pyshell#12>", line 1, in <module>
    cur.fetchone()
  File "cursor.pyx", line 185, in oursql.Cursor.fetchone 
(oursqlx\oursql.c:16162)
  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)

if i use oursql0.1 these is no problem, i dont know what happen





_______________________________________________
Mailing list: https://launchpad.net/~agesys-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~agesys-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to