You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
SELECT 1; is not a valid query to test connection for DB2 iseries ODBC connection聽#48
Thank you for reporting this ! Do you want to try and open a pull request ? I can guide you if you need. db2 is paid and proprietary, so I will need to trust you to test your changes locally
Activity
lovasoa commentedon Dec 12, 2025
Thank you for reporting this ! Do you want to try and open a pull request ? I can guide you if you need. db2 is paid and proprietary, so I will need to trust you to test your changes locally
lovasoa commentedon Dec 12, 2025
the offending code is here
sqlx-oldapi/sqlx-core/src/odbc/connection/mod.rs
Lines 123 to 129 in 645fd0d
and if you just want to work around the issue temporarily, you should be able to use
test_before_acquire(false)https://docs.rs/sqlx-oldapi/latest/sqlx_oldapi/pool/struct.PoolOptions.html#method.test_before_acquire