Skip to content

[C++][FlightRPC][ODBC] Fix inconsistent values in SQLGetInfo in global connection #49482

Closed

Description

@alinaliBQ

Describe the enhancement requested

When tests use a global connection, it is revealed that ODBC flightsql-odbc backend has a bug where SQLGetInfo returns inconsistent values for these 3 attributes:

  • SQL_CATALOG_LOCATION
  • SQL_DROP_TABLE
  • SQL_DROP_SCHEMA

Test case with SQL_CATALOG_LOCATION is reproducible on remote OS Dremio instance, and test cases SQL_DROP_TABLE, and SQL_DROP_SCHEMA are reproducible on mock server

Code to reproduce:

TYPED_TEST(ConnectionInfoTest, TestSQLGetInfoCatalogLocation) {
SQLUSMALLINT value;
GetInfo(this->conn, SQL_CATALOG_LOCATION, &value);
EXPECT_EQ(static_cast<SQLUSMALLINT>(0), value);
}

TYPED_TEST(ConnectionInfoTest, TestSQLGetInfoDropSchema) {
SQLUINTEGER value;
GetInfo(this->conn, SQL_DROP_SCHEMA, &value);
EXPECT_EQ(static_cast<SQLUINTEGER>(0), value);
}

TYPED_TEST(ConnectionInfoTest, TestSQLGetInfoDropTable) {
SQLUINTEGER value;
GetInfo(this->conn, SQL_DROP_TABLE, &value);
EXPECT_EQ(static_cast<SQLUINTEGER>(0), value);
}

Parent issue: #30622

Component(s)

C++, FlightRPC

Activity

  1. added 2 commits that reference this issue on Aug 2, 2026
  2. added a commit that references this issue on Aug 9, 2026
  3. added this to the 26.0.0 milestone on Aug 9, 2026
  4. lidavidm commented on Aug 9, 2026

    @lidavidm
    Member

    Issue resolved by pull request 50021
    #50021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions