Hello,
I am on Win64 / 64-bit python, and have the following 2 problems. No
idea what causes this:
1) cursor.rowcount always returns -1
2) result tuples cannot be accessed by name, for example:
cursor.execute(stuff)
for row in cursor.fetchall():
print row['field1']
gives a TypeError: tuple indices must be integers
This happens when accessing a ms access .accdb database. I do not have
MS Office installed, but use the redistributable at
http://www.microsoft.com/download/en/details.aspx?id=13255. The whole
thing works fine on another box with a 32-bit python installation. The
rest of the resultsets come through fine, it is just these two things
that don't work.
I am at a loss here. Any ideas greatly appreciated! (might not be a
pyodbc related issue of course).
Stefan