IBM / django-ibmi

Django adapter for IBM i
Apache License 2.0
3 stars 5 forks source link

Rewrite CursorWrapper class to be compatible with pyodbc #47

Closed naveen-ram closed 3 years ago

naveen-ram commented 3 years ago

In #21, all the instances of ibm_db were changed to pyodbc. Because of this, the CursorWrapper class must be rewritten to work with pyodbc rather than ibm_db. The reason for this being that the CursorWrapper had extended ibm_db.Cursor and now extends pyodbc.Cursor which cannot be extended as a static class.

kadler commented 3 years ago

Can you explain further what you mean by "pyodbc.Cursor [...] cannot be extended as a static class"?