-
Couldn't load subscription status.
- 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
|
|
|
|
||
| #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? |
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)
|
|
||
| #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
e8c404c to
c6c5af9
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.
Rebased on top of master
| out_str_len /= arrow::flight::sql::odbc::GetSqlWCharSize(); | ||
| std::string out_connection_string = | ||
| ODBC::SqlWcharToString(out_str, static_cast<SQLSMALLINT>(out_str_len)); | ||
| EXPECT_TRUE(!out_connection_string.empty()); |
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.
nit: EXPECT_FALSE
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.
fixed
Co-authored-by: justing-bq <[email protected]> Co-authored-by: alinalibq <[email protected]>
Rebase from `master`
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.
Thanks for reviewing, please note that the tests in this PR requires connectivity support implementation (I will raise the PR for connectivity after #47760 is merged) in order to pass.
| out_str_len /= arrow::flight::sql::odbc::GetSqlWCharSize(); | ||
| std::string out_connection_string = | ||
| ODBC::SqlWcharToString(out_str, static_cast<SQLSMALLINT>(out_str_len)); | ||
| EXPECT_TRUE(!out_connection_string.empty()); |
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.
fixed
c6c5af9 to
2332bda
Compare
Rationale for this change
Add connection attribute support for ODBC driver.
What changes are included in this PR?
SQLGetConnectAttrandSQLSetConnectAttrto 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