-
Notifications
You must be signed in to change notification settings - Fork 3.9k
GH-47708: [C++][FlightRPC] Connection Attribute Support for ODBC #47772
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
base: main
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
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_
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Could you create new draft PRs after you complete other draft PRs to reflect comments in other draft PRs? |
Co-authored-by: justing-bq <[email protected]> Co-authored-by: alinalibq <[email protected]>
af5de2e
to
e8c404c
Compare
There was a problem hiding this 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)
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
Rationale for this change
Add connection attribute support for ODBC driver.
What changes are included in this PR?
SQLGetConnectAttr
andSQLSetConnectAttr
to get and set connection attributesAre these changes tested?
Will be tested in CI when PR is ready for review
Are there any user-facing changes?
No