-
Notifications
You must be signed in to change notification settings - Fork 0
Resolve ODBC CI Build Errors #129
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,16 +101,20 @@ TEST(ODBCHandles, TestSQLAllocAndFreeConnect) { | |
| ASSERT_EQ(SQL_SUCCESS, SQLFreeEnv(env)); | ||
| } | ||
|
|
||
| TYPED_TEST(ConnectionTest, TestFreeNullHandles) { | ||
| TEST(SQLFreeHandle, TestFreeNullHandles) { | ||
| SQLHENV env = NULL; | ||
| SQLHDBC conn = NULL; | ||
| SQLHSTMT stmt = NULL; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this change necessary?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
|
||
| // Verifies attempt to free invalid handle does not cause segfault | ||
| // Attempt to free null statement handle | ||
| ASSERT_EQ(SQL_INVALID_HANDLE, SQLFreeHandle(SQL_HANDLE_STMT, this->stmt)); | ||
| ASSERT_EQ(SQL_INVALID_HANDLE, SQLFreeHandle(SQL_HANDLE_STMT, stmt)); | ||
|
|
||
| // Attempt to free null connection handle | ||
| ASSERT_EQ(SQL_INVALID_HANDLE, SQLFreeHandle(SQL_HANDLE_DBC, this->conn)); | ||
| ASSERT_EQ(SQL_INVALID_HANDLE, SQLFreeHandle(SQL_HANDLE_DBC, conn)); | ||
|
|
||
| // Attempt to free null environment handle | ||
| ASSERT_EQ(SQL_INVALID_HANDLE, SQLFreeHandle(SQL_HANDLE_ENV, this->env)); | ||
| ASSERT_EQ(SQL_INVALID_HANDLE, SQLFreeHandle(SQL_HANDLE_ENV, env)); | ||
| } | ||
|
|
||
| TEST(SQLGetEnvAttr, TestSQLGetEnvAttrODBCVersion) { | ||
|
|
||
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.
If
ConfigDSNWis undernamespace arrow::flight::sql::odbc, thenConfigDSNWis defined asarrow::flight::sql::odbc::ConfigDSNWwhich is not recognized by stricted compilers. SoConfigDSNWneeds to be defined on its own without any namespace