Passing arguments to executemany
Hi,
I switched from MySQLdb to oursql and I very happy with it. I just tried using executemany for this query
query="""
select unix_timestamp(
from revision r join page p
on r.rev_page = p.page_id
where rev_user = ?
order by rev_timestamp
"""
In my script I call it in the following fashion:
executemany(query, [(10,), (20,)])
But I get the following error:
------
ProgrammingError Traceback (most recent call last)
/home/giovanni/
----> 1 cursor.
/usr/local/
/usr/local/
ProgrammingError: (None, 'executing this query would cause rows to become unfetchable', None)
*************
what does it mean? I am using oursql 0.9.2 on Python 2.7 Ubuntu 11.04.
Cheers
G
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- oursql Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: