-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLAlchemy 2.0 errors #118
Comments
This is what I did to get it working with sqlalchemy 2.0 set and changing _IBM_Numeric_ibm_db to class _IBM_Numeric_ibm_db(sa_types.Numeric):
def result_processor(self, dialect, coltype):
def to_float(value):
if value is None:
return None
else:
return float(value)
if self.asdecimal:
return None
else:
return to_float |
One step closer. Now this error...
|
try accessing it as |
that works |
Good that it is working now. Closing the issue. Thanks. |
This hasn't actually been fixed. The library still needs to be updated, this is really only a temporary fix for people that need this working with SQLalchemy 2.0 |
Hello, chiming in on the error. Versions:
Create engine connection string:
Error stack trace:
Any pointers on how to resolve it? |
@SimasJan ibm_db_sa do not support SQLAlchemy 2.0 yet. The documented version of SQLAlchemy is 1.4.x, so you need to downgrade your SQLAlchemy version. We are working on enhancement to support sqlalchemy 2.0 and once the support get released, you can use that. Thanks. |
@SimasJan can use SQLAlchemy==1.3.24 for ibm_db_sa version lastest |
@lsmoker, @SimasJan and @denmat-mwelch The fix for this issue is given. Please verify through the latest PR - #124 |
This package needs updates to be compatible with SQLAlchemy 2.0.
Here are some errors but there are probably more...
The text was updated successfully, but these errors were encountered: