aio-libs / aioodbc

aioodbc - is a library for accessing a ODBC databases from the asyncio
Apache License 2.0
310 stars 60 forks source link

implement pyodbc.setinputsizes #451

Closed zzzeek closed 1 year ago

zzzeek commented 1 year ago

this method is for some reason not implemented

https://github.com/aio-libs/aioodbc/blob/ecc52a6b950a027a651da6c5ecec61d7b4046d42/aioodbc/cursor.py#L148-L150

This method is extremely important for pyodbc, here's the docs for how it is used with pyodbc , here are github issues where setinputsizes is the only way to make things work: https://github.com/mkleehammer/pyodbc/issues/1239 https://github.com/mkleehammer/pyodbc/issues/1221 https://github.com/mkleehammer/pyodbc/issues/1021 many more

SQLAlchemy will work around for now by hitting impl directly

cc @gordthompson

jettify commented 1 year ago

I implemented method, changes should be available on PyPI https://pypi.org/project/aioodbc/0.4.1/