Skip to content

Conversation

alinaliBQ
Copy link
Contributor

@alinaliBQ alinaliBQ commented Oct 9, 2025

Rationale for this change

Add connection attribute support for ODBC driver.

What changes are included in this PR?

  • Implementation of SQLGetConnectAttr and SQLSetConnectAttr to get and set connection attributes
  • Tests

Are these changes tested?

Will be tested in CI when PR is ready for review

Are there any user-facing changes?

No

Copy link

github-actions bot commented Oct 9, 2025

⚠️ GitHub issue #47708 has been automatically assigned in GitHub to PR creator.

@alinaliBQ
Copy link
Contributor Author

@lidavidm @kou Please review this draft ODBC API PR, thanks. The testing folder structure will be in a separate PR

@github-actions github-actions bot added the awaiting review Awaiting review label Oct 9, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comments as other PRs:

  • We can create a separate test fixture
  • We can put Connect/Disconnect in SetUp/TearDown
  • We should probably be using ASSERT_ not EXPECT_

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use ASSERT_ where applicable. Other items are in-progress. Connect/Disconnect have been removed from tests and we will move it to SetUp/TearDown

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Oct 10, 2025

#ifdef SQL_ATTR_ASYNC_DBC_EVENT
TYPED_TEST(FlightSQLODBCTestBase, TestSQLSetConnectAttrAsyncDbcEventUnsupported) {
this->Connect();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetUp() as David commented in other PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this->Connect() from tests. we will move it to SetUp

@kou
Copy link
Member

kou commented Oct 10, 2025

Could you create new draft PRs after you complete other draft PRs to reflect comments in other draft PRs?

@alinaliBQ
Copy link
Contributor Author

@lidavidm @kou Sure, will check the general comments first before creating new PRs. I will put the PRs to a pause for now since the comments are similar. Thanks for letting me know

@alinaliBQ alinaliBQ force-pushed the gh-47708-sql-connect-attr branch from af5de2e to e8c404c Compare October 21, 2025 22:15
Copy link
Contributor Author

@alinaliBQ alinaliBQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In-progress of addressing comments. The team is still working on improving the subclass logic for separate test fixture (discussion is in #47788)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use ASSERT_ where applicable. Other items are in-progress. Connect/Disconnect have been removed from tests and we will move it to SetUp/TearDown


#ifdef SQL_ATTR_ASYNC_DBC_EVENT
TYPED_TEST(FlightSQLODBCTestBase, TestSQLSetConnectAttrAsyncDbcEventUnsupported) {
this->Connect();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this->Connect() from tests. we will move it to SetUp

@github-actions github-actions bot added awaiting review Awaiting review awaiting change review Awaiting change review awaiting committer review Awaiting committer review and removed awaiting changes Awaiting changes awaiting review Awaiting review awaiting change review Awaiting change review labels Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants