The ibm_db package 3.2.3

I have installed ibm_db (3.2.3) multiple times because all attempts to request ‘any’ cursor related methods ( i.e. cursor = conn.cursor) or any of the many ‘fetch’ options return an error that the object (conn) has no such attributes.
Is there any known cure ??
I have cut and pasted a dozen options that are supposed to work but all fail for the reason above. Should I try an earlier release of ibm_db ??

Have you read the docs?

The PyPI page didn’t provide a link to the docs, so I had to search for it.

Is this it?

Preparing and executing a single SQL statement in Python - IBM Documentation

If it is, then you can see that its API isn’t the same as that of other DBs. Also, the code is for Python 2.7 (you can tell by the print statements), so a little tweaking might be needed.

1 Like