-
Notifications
You must be signed in to change notification settings - Fork 3.9k
GH-47709 : [C++][FlightRPC] Return ODBC and data source information #47762
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
Co-Authored-By: rscales <[email protected]>
Add SQLGetInfo tests Co-Authored-By: rscales <[email protected]>
|
const bool is_unicode = true; | ||
|
||
if (!info_value_ptr && !string_length_ptr) { | ||
return static_cast<SQLRETURN> SQL_ERROR; |
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.
return static_cast<SQLRETURN> SQL_ERROR; | |
return static_cast<SQLRETURN>(SQL_ERROR); |
?
// Driver Information | ||
|
||
TYPED_TEST(FlightSQLODBCTestBase, TestSQLGetInfoActiveEnvironments) { | ||
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.
Could the connect/disconnect be put in a SetUp/TearDown?
Also it might not be wise to add the tests directly to FlightSQLODBCTestBase; could we create a fixture for this test suite specifically (by subclassing)?
TYPED_TEST(FlightSQLODBCTestBase, TestSQLGetInfoDriverName) { | ||
this->Connect(); | ||
|
||
Validate(this->conn, SQL_DRIVER_NAME, (SQLWCHAR*)L"Arrow Flight ODBC Driver"); |
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.
Could you use static_cast
?
Rationale for this change
ODBC needs to give BI tools information about the driver itself and the data source it is connected to.
What changes are included in this PR?
SQLGetinfo
to return driver and data source informationget_info_cache.cc
Are these changes tested?
Will be tested in CI when PR is ready for review
Are there any user-facing changes?
No