Skip to content

SELECT 1; is not a valid query to test connection for DB2 iseries ODBC connection #48

@ThiccPan

Description

@ThiccPan

Bug Description

using
SELECT 1;
is not a valid query to test the connection in db2. Is it possible to use this query instead if the connected database is a db2 database
select 1 from sysibm.sysdummy1;

Minimal Reproduction

  1. Initialized connection to a db2 using odbc.
  2. Wait until ping_blocking function is called

Info

  • SQLx version: [0.6]
  • SQLx features enabled: [ "runtime-tokio-native-tls" , "mssql" , "odbc" , "chrono" ]
  • Database server and version: (ODBC connection to db2 iseries database)
  • Operating system: [windows 10]
  • rustc --version: [rustc 1.90.0 (1159e78c4 2025-09-14)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions